Skip to content

Commit cb273be

Browse files
authored
Merge pull request #404 from Adyen/release-action-run-on-merged-pr
Release workflow: run on merged PRs
2 parents 80cc46b + b746e93 commit cb273be

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ on:
2222

2323
jobs:
2424
release:
25-
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
25+
# Run on workflow_dispatch OR when PR is merged from same repository
26+
if: ${{ github.event_name != 'pull_request' || (github.event.pull_request.merged == true && github.event.pull_request.head.repo.full_name == github.repository) }}
2627
permissions:
2728
contents: write
2829
pull-requests: write

0 commit comments

Comments
 (0)