From 6a960cf710c63fa4b5a2f90bac52509080b2cc6c Mon Sep 17 00:00:00 2001 From: moruiris <53965900+moruiris@users.noreply.github.com> Date: Fri, 6 Jan 2023 16:38:59 +0800 Subject: [PATCH] Update Openwrt_x86.yml --- .github/workflows/Openwrt_x86.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/Openwrt_x86.yml b/.github/workflows/Openwrt_x86.yml index 2822afb..90ea193 100644 --- a/.github/workflows/Openwrt_x86.yml +++ b/.github/workflows/Openwrt_x86.yml @@ -20,6 +20,12 @@ jobs: build: runs-on: ubuntu-latest + name: Update ${{matrix.target}} + strategy: + fail-fast: false + matrix: + target: [Openwrt] + steps: - name: 检查项目分支 uses: actions/checkout@main @@ -142,7 +148,7 @@ jobs: sudo timedatectl set-timezone "Asia/Shanghai" - name: config文件上传自动更新2 cd $GITHUB_WORKSPACE - git clone -b main https://github.com/moruiris/Actions-OpenWrt.git main + git clone -b ${{matrix.target}} https://github.com/moruiris/Actions-OpenWrt.git ${{matrix.target}} cd main git rm -r --cache * >/dev/null 2>&1 & rm -rf * >/dev/null 2>&1 @@ -150,7 +156,7 @@ jobs: env: ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} run: | - cd $GITHUB_WORKSPACE/main + cd $GITHUB_WORKSPACE/${{matrix.target}} 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 + git push --quiet "https://${{ secrets.ACCESS_TOKEN }}@github.com/moruiris/Actions-OpenWrt.git" HEAD:${{matrix.target}}