From 55ce44d20ab03263373c530e2ebf9a30fe54715d Mon Sep 17 00:00:00 2001 From: moruiris <53965900+moruiris@users.noreply.github.com> Date: Fri, 6 Jan 2023 16:49:35 +0800 Subject: [PATCH] Update immortalwrt_x86.yml --- .github/workflows/immortalwrt_x86.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/immortalwrt_x86.yml b/.github/workflows/immortalwrt_x86.yml index 70d882f..0ac085d 100644 --- a/.github/workflows/immortalwrt_x86.yml +++ b/.github/workflows/immortalwrt_x86.yml @@ -20,12 +20,6 @@ jobs: build: runs-on: ubuntu-latest - name: Update ${{matrix.target}} - strategy: - fail-fast: false - matrix: - target: [immortalwrt] - steps: - name: 检查项目分支 uses: actions/checkout@main @@ -147,8 +141,9 @@ jobs: git config --global user.name "github-actions[bot]" sudo timedatectl set-timezone "Asia/Shanghai" - name: config文件上传自动更新2 + run: | 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 git rm -r --cache * >/dev/null 2>&1 & rm -rf * >/dev/null 2>&1 @@ -156,7 +151,7 @@ jobs: env: ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} run: | - cd $GITHUB_WORKSPACE/${{matrix.target}} + 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:${{matrix.target}} + git push --quiet "https://${{ secrets.ACCESS_TOKEN }}@github.com/moruiris/Actions-OpenWrt.git" HEAD:main