Update immortalwrt_x86.yml
This commit is contained in:
13
.github/workflows/immortalwrt_x86.yml
vendored
13
.github/workflows/immortalwrt_x86.yml
vendored
@ -20,12 +20,6 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
name: Update ${{matrix.target}}
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
target: [immortalwrt]
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: 检查项目分支
|
- name: 检查项目分支
|
||||||
uses: actions/checkout@main
|
uses: actions/checkout@main
|
||||||
@ -147,8 +141,9 @@ jobs:
|
|||||||
git config --global user.name "github-actions[bot]"
|
git config --global user.name "github-actions[bot]"
|
||||||
sudo timedatectl set-timezone "Asia/Shanghai"
|
sudo timedatectl set-timezone "Asia/Shanghai"
|
||||||
- name: config文件上传自动更新2
|
- name: config文件上传自动更新2
|
||||||
|
run: |
|
||||||
cd $GITHUB_WORKSPACE
|
cd $GITHUB_WORKSPACE
|
||||||
git clone -b ${{matrix.target}} https://github.com/moruiris/Actions-OpenWrt.git ${{matrix.target}}
|
git clone -b main https://github.com/moruiris/Actions-OpenWrt.git main
|
||||||
cd main
|
cd main
|
||||||
git rm -r --cache * >/dev/null 2>&1 &
|
git rm -r --cache * >/dev/null 2>&1 &
|
||||||
rm -rf * >/dev/null 2>&1
|
rm -rf * >/dev/null 2>&1
|
||||||
@ -156,7 +151,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
cd $GITHUB_WORKSPACE/${{matrix.target}}
|
cd $GITHUB_WORKSPACE/main
|
||||||
git add .
|
git add .
|
||||||
git commit -am "update $(date +%Y-%m-%d" "%H:%M:%S)"
|
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:${{matrix.target}}
|
git push --quiet "https://${{ secrets.ACCESS_TOKEN }}@github.com/moruiris/Actions-OpenWrt.git" HEAD:main
|
||||||
|
Reference in New Issue
Block a user