diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fd17b7bde3..cb30e040b8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -54,6 +54,24 @@ jobs: filters: | charts: - charts/nginx-gateway-fabric/**/* + generate: + - go.mod + - go.sum + - Makefile + + # go mod tidy can be removed once https://github.com/renovatebot/renovate/issues/12999 is implemented + - name: Update files for renovate + run: | + make generate-all + cd tests && go mod tidy && go mod verify + if: ${{ github.actor == 'renovate[bot]' && steps.filter.outputs.generate == 'true' }} + + - name: Commit changes + id: commit + uses: stefanzweifel/git-auto-commit-action@8621497c8c39c72f3e2a999a26b4ca1b5058a842 # v5.0.1 + with: + commit_message: "Update files for renovate" + if: ${{ github.actor == 'renovate[bot]' && steps.filter.outputs.generate == 'true' }} - name: Output Variables id: vars