Skip to content

Commit b1b6955

Browse files
committed
Make update workflow run on its own app so it can run the workflow verification
1 parent 2752353 commit b1b6955

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/update_victron_mqtt.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@ jobs:
1313
update-victron-mqtt:
1414
runs-on: ubuntu-latest
1515
steps:
16+
- name: Generate GitHub App token
17+
id: app-token
18+
uses: actions/create-github-app-token@v2
19+
with:
20+
app-id: ${{ vars.CREATE_PR_APP_ID }}
21+
private-key: ${{ secrets.CREATE_PR_APP_PRIVATE_KEY }}
22+
1623
- name: Checkout repository
1724
uses: actions/checkout@v7
1825

@@ -106,6 +113,10 @@ jobs:
106113
if: steps.check_update.outputs.update_needed == 'true'
107114
uses: peter-evans/create-pull-request@v8
108115
with:
116+
# Use a GitHub App token (not the default GITHUB_TOKEN) so the created
117+
# PR triggers other workflows (e.g. Validate). Events raised by
118+
# GITHUB_TOKEN do not trigger further workflow runs by design.
119+
token: ${{ steps.app-token.outputs.token }}
109120
branch: update/victron-mqtt-${{ steps.get_release.outputs.latest_version }}
110121
delete-branch: true
111122
title: "Update victron_mqtt to ${{ steps.get_release.outputs.latest_version }}"

0 commit comments

Comments
 (0)