From bceb2bf7beeecb5c6e09fc92e220719e3f1900af Mon Sep 17 00:00:00 2001 From: Chris Werner Rau Date: Mon, 23 Sep 2024 13:18:00 +0200 Subject: [PATCH] fix(ci): trigger workflows with automated PRs see https://github.com/teutonet/teutonet-helm-charts/pull/1183 and https://github.com/teutonet/teutonet-helm-charts/pull/1165 --- .github/workflows/update-artifacthub-images.yaml | 11 +++++------ .github/workflows/update-codeowners.yaml | 1 + 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/update-artifacthub-images.yaml b/.github/workflows/update-artifacthub-images.yaml index b8e1f3c87..60982138f 100644 --- a/.github/workflows/update-artifacthub-images.yaml +++ b/.github/workflows/update-artifacthub-images.yaml @@ -50,6 +50,7 @@ jobs: - id: create-pr uses: peter-evans/create-pull-request@c5a7806660adbe173f04e3e038b0ccdcd758773c # v6 with: + token: ${{ secrets.ACTIONS_BOT_TOKEN }} # otherwise downstream workflows are not being run add-paths: | charts/${{ matrix.chart }}/Chart.yaml commit-message: "ci(${{ matrix.chart }}/artifacthub-images): Update images in 'Chart.yaml'" @@ -61,11 +62,9 @@ jobs: run: gh pr merge --auto --squash "$PR_NUMBER" env: GH_TOKEN: ${{ secrets.ACTIONS_BOT_TOKEN }} - PR_NUMBER: ${{ steps.create-pr.outputs.pull-request-number }} merge-method: squash - if: ${{ steps.create-pr.outputs.pull-request-number }} - uses: juliangruber/approve-pull-request-action@b71c44ff142895ba07fad34389f1938a4e8ee7b0 # v2.0.6 - with: - github-token: ${{ secrets.ACTIONS_BOT_TOKEN }} - number: ${{ steps.create-pr.outputs.pull-request-number }} - merge-method: squash + run: gh pr review --approve "$PR_NUMBER" + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PR_NUMBER: ${{ steps.create-pr.outputs.pull-request-number }} diff --git a/.github/workflows/update-codeowners.yaml b/.github/workflows/update-codeowners.yaml index b9dd5c068..90f2f4b6c 100644 --- a/.github/workflows/update-codeowners.yaml +++ b/.github/workflows/update-codeowners.yaml @@ -21,6 +21,7 @@ jobs: id: create-pr uses: peter-evans/create-pull-request@c5a7806660adbe173f04e3e038b0ccdcd758773c # v6 with: + token: ${{ secrets.ACTIONS_BOT_TOKEN }} # otherwise downstream workflows are not being run add-paths: | .github/CODEOWNERS commit-message: "ci: [bot] Update 'CODEOWNERS'"