diff --git a/.github/workflows/check_code.yml b/.github/workflows/check_code.yml index 29a740be3..637bb49ba 100644 --- a/.github/workflows/check_code.yml +++ b/.github/workflows/check_code.yml @@ -38,7 +38,7 @@ jobs: - run: git config --global user.name "github-actions" - run: git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" - run: git stash - - run: git checkout unstable + - run: git checkout unstable && git pull - run: git stash pop || true - name: Commit Code Changes diff --git a/.github/workflows/handbook.yml b/.github/workflows/handbook.yml index a4d8358cc..72dc1f3bc 100644 --- a/.github/workflows/handbook.yml +++ b/.github/workflows/handbook.yml @@ -44,12 +44,15 @@ jobs: - run: git config --global user.name "github-actions" - run: git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" + - run: git stash + - run: git checkout unstable && git pull + - run: git stash pop || true - name: Commit changes if: ${{ github.event_name == 'push' }} run: git add -u && git commit -m "Lint Code [skip actions]" || true - name: Push changes if: ${{ github.event_name == 'push' }} - run: git push --set-upstream --force origin ${{ github.ref }} + run: git push --set-upstream --force origin unstable Build-Handbook: runs-on: ubuntu-latest