From c4a308bb98e618dc5800c9ac3cc834450ef0f765 Mon Sep 17 00:00:00 2001 From: Rene Schallner Date: Sat, 24 Feb 2024 16:57:41 +0100 Subject: [PATCH] try to auto-update readme for zig-0.12.0 --- .github/workflows/mastercheck.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/mastercheck.yml b/.github/workflows/mastercheck.yml index ca18b23..34c2729 100644 --- a/.github/workflows/mastercheck.yml +++ b/.github/workflows/mastercheck.yml @@ -36,3 +36,26 @@ jobs: run: zig build test-authentication - name: Report end of tests run: echo "tests finished" + + update-readme: + runs-on: ubuntu-latest + permissions: + id-token: write + 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" + + - 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