diff --git a/.github/workflows/mastercheck.yml b/.github/workflows/mastercheck.yml index 34c2729..e1b62c5 100644 --- a/.github/workflows/mastercheck.yml +++ b/.github/workflows/mastercheck.yml @@ -44,18 +44,20 @@ jobs: contents: write steps: - - name: Run script to update README - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - TAG_NAME: ${{ steps.tag.outputs.version }} - run: | - tools/announceybot.exe update-readme "zig-0.12.0" + - uses: actions/checkout@v3 - - name: Commit and push if it has changed - run: | - git diff - git checkout zig-0.12.0 - git config --local user.email "action@github.com" - git config --local user.name "GitHub Action" - git commit -am "Update README" - git push origin master + - name: Run script to update README + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + TAG_NAME: ${{ steps.tag.outputs.version }} + run: | + tools/announceybot.exe update-readme "zig-0.12.0" + + - name: Commit and push if it has changed + run: | + git diff + git checkout zig-0.12.0 + git config --local user.email "action@github.com" + git config --local user.name "GitHub Action" + git commit -am "Update README" + git push origin master