Skip to content

Commit

Permalink
Fix autobump merge base ref check (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
Twixes authored Feb 19, 2021
1 parent 022505e commit 57f7f93
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/label-version-bump.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ jobs:
runs-on: ubuntu-20.04
if: |
github.event.pull_request.merged == 'true'
&& contains(['master', 'main'], github.event.pull_request.base.ref)
&& (
github.event.pull_request.base.ref == 'master'
|| github.event.pull_request.base.ref == 'main'
) && (
contains(github.event.pull_request.labels.*.name, 'bump patch')
|| contains(github.event.pull_request.labels.*.name, 'bump minor')
|| contains(github.event.pull_request.labels.*.name, 'bump major')
Expand Down

0 comments on commit 57f7f93

Please sign in to comment.