Skip to content

Commit

Permalink
Fix branch filtering in the prepublish workflow, bis (#188 #238)
Browse files Browse the repository at this point in the history
Gratefully using the updated solution from
devmasx/merge-branch#11 (comment)
  • Loading branch information
jgonggrijp committed Dec 17, 2020
1 parent c7bd0a9 commit 3e82a56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/prepublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
# Filtering by branch here instead. Credit due to @MiguelSavignano.
# https://github.com/devmasx/merge-branch/issues/11
if: contains(github.ref, 'refs/release/') || contains(github.ref, 'refs/hotfix/')
if: contains(github.event.pull_request.head.ref, 'release/') || contains(github.event.pull_request.head.ref, 'hotfix/')
steps:
- uses: actions/checkout@v2
- name: Merge into prepublish
Expand Down

0 comments on commit 3e82a56

Please sign in to comment.