Skip to content

Commit

Permalink
Merge pull request #126 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 f439b37 + d67cc1b commit 941ab17
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: alma-php-client

- 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 941ab17

Please sign in to comment.