diff --git a/.github/workflows/update-artifacthub-images.yaml b/.github/workflows/update-artifacthub-images.yaml index f544caa41..705c92042 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@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7 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 2de7e2abe..0cd1b00e6 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@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7 with: + token: ${{ secrets.ACTIONS_BOT_TOKEN }} # otherwise downstream workflows are not being run add-paths: | .github/CODEOWNERS commit-message: "ci: [bot] Update 'CODEOWNERS'"