Skip to content

Commit 3e82a56

Browse files
committed
Fix branch filtering in the prepublish workflow, bis (#188 #238)
Gratefully using the updated solution from devmasx/merge-branch#11 (comment)
1 parent c7bd0a9 commit 3e82a56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/prepublish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
# Filtering by branch here instead. Credit due to @MiguelSavignano.
1717
# https://github.com/devmasx/merge-branch/issues/11
18-
if: contains(github.ref, 'refs/release/') || contains(github.ref, 'refs/hotfix/')
18+
if: contains(github.event.pull_request.head.ref, 'release/') || contains(github.event.pull_request.head.ref, 'hotfix/')
1919
steps:
2020
- uses: actions/checkout@v2
2121
- name: Merge into prepublish

0 commit comments

Comments
 (0)