Skip to content

Commit

Permalink
run publish action on labelled pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
cornerman committed May 10, 2023
1 parent 0dba65b commit 4bf1581
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ jobs:

publish:
needs: [build]
if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v'))
if: (github.event_name != 'pull_request' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v'))) ||
(github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'publish'))
strategy:
matrix:
os: [ubuntu-20.04]
Expand Down

0 comments on commit 4bf1581

Please sign in to comment.