Skip to content

Commit

Permalink
fix(ci): trigger workflows with automated PRs
Browse files Browse the repository at this point in the history
see #1183
and #1165
  • Loading branch information
cwrau committed Sep 24, 2024
1 parent 23ec498 commit bceb2bf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/update-artifacthub-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'"
Expand All @@ -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 }}
1 change: 1 addition & 0 deletions .github/workflows/update-codeowners.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'"
Expand Down

0 comments on commit bceb2bf

Please sign in to comment.