From 6e9796ff88787fd20f4c3953c3a3a02f97a1b72d Mon Sep 17 00:00:00 2001 From: Tim Ebert Date: Sat, 17 Aug 2024 00:31:47 +0200 Subject: [PATCH] Trigger another verify check (#325) --- .github/workflows/renovate.yaml | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/.github/workflows/renovate.yaml b/.github/workflows/renovate.yaml index a1a8f2e7..bdf324d9 100644 --- a/.github/workflows/renovate.yaml +++ b/.github/workflows/renovate.yaml @@ -9,23 +9,38 @@ jobs: post-update: runs-on: ubuntu-latest - permissions: - contents: write - steps: - uses: actions/checkout@v4 + with: + token: ${{ secrets.RENOVATE_TOKEN }} - uses: actions/setup-go@v5 with: go-version-file: go.mod + # prevent triggering infinite loop of this action + - name: safety check + id: safety + run: | + if git log -1 --pretty=full | grep '\[skip renovate-post-update\]' >/dev/null ; then + echo "Skipping renovate post update workflow" + echo "skip=true" >> $GITHUB_OUTPUT + fi + # Some dependency updates might require updating go.work.sum. # Automatically run `make tidy` on renovate branches as long as renovate doesn't know how to handle go workspaces. # Some dependency updates might require re-running code generation. # Run `make generate` and commit all changes if any. - run: make tidy generate + if: steps.safety.outputs.skip != 'true' - uses: stefanzweifel/git-auto-commit-action@v5 + if: steps.safety.outputs.skip != 'true' with: - commit_message: make tidy generate + commit_message: | + make tidy generate + + [skip renovate-post-update] + + # commit with renovate's user, so that it doesn't block further updates to the PR commit_user_name: renovate[bot] commit_user_email: 29139614+renovate[bot]@users.noreply.github.com commit_author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>