Skip to content

Commit

Permalink
Fix branch filtering in the prepublish workflow (#188 #238)
Browse files Browse the repository at this point in the history
Gratefully using the solution from
devmasx/merge-branch#11 (comment)
  • Loading branch information
jgonggrijp committed Dec 17, 2020
1 parent 5996e43 commit c7bd0a9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/prepublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ name: Prepublication staging
on:
pull_request:
types: [labeled]
branches:
- release/*
- hotfix/*
# Would filter by branch here, but GH Actions wrongly decides not to
# trigger the workflow if we do this.

jobs:
stage:
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/')
steps:
- uses: actions/checkout@v2
- name: Merge into prepublish
Expand Down

0 comments on commit c7bd0a9

Please sign in to comment.