Skip to content

Commit

Permalink
Merge pull request #121 from alma/devx/fix-pull-request-workflow-not-…
Browse files Browse the repository at this point in the history
…triggered-on-release-pr

[DEVX] Fix release PR not triggering workflows
  • Loading branch information
carine-bonnafous authored Jul 18, 2024
2 parents 5911da5 + 5ae4f4f commit 21550b2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/release-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,20 @@ jobs:
run: |
./scripts/update-files-with-release-version.sh ${{ steps.release-drafter.outputs.tag_name }}
# If using default Github token, the created pull request won't trigger workflows with pull_request event
# See https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#triggering-further-workflow-runs
- name: Generate Github token to create PR
uses: actions/create-github-app-token@v1
id: github-token
with:
app-id: ${{ secrets.ALMA_CREATE_TEAM_PRS_APP_ID }}
private-key: ${{ secrets.ALMA_CREATE_TEAM_PRS_APP_PEM }}
repositories: sfcc-cartridge

- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
token: ${{ steps.github-token.outputs.token }}
commit-message: 'chore: update version'
title: Release ${{ steps.release-drafter.outputs.tag_name }}
body: |
Expand Down

0 comments on commit 21550b2

Please sign in to comment.