Update lede_x86.yml

This commit is contained in:
moruiris 2023-01-06 18:03:52 +08:00 committed by GitHub
parent eeb5d3dba3
commit 95d9dfac23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -134,25 +134,3 @@ jobs:
name: ${{ env.date3 }}
tag_name: ${{ steps.tag.outputs.release_tag }}
body_path: release.txt
- name: config文件上传自动更新1
run : |
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
sudo timedatectl set-timezone "Asia/Shanghai"
- name: config文件上传自动更新2
run: |
cd $GITHUB_WORKSPACE
git clone -b main https://github.com/moruiris/Actions-OpenWrt.git main
cd main
git rm -r --cache * >/dev/null 2>&1 &
rm -rf * >/dev/null 2>&1
- name: config文件上传自动更新3
env:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
run: |
cd $GITHUB_WORKSPACE/main
git add .
git commit -am "update $(date +%Y-%m-%d" "%H:%M:%S)"
git push --quiet "https://${{ secrets.ACCESS_TOKEN }}@github.com/moruiris/Actions-OpenWrt.git" HEAD:main