Skip to content

Commit

Permalink
only run cancel workflow explicitly for pull_request events
Browse files Browse the repository at this point in the history
  • Loading branch information
kate-goldenring committed Mar 25, 2021
1 parent ca3d69c commit de804a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/cancel-previous-pr-workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
jobs:
cancel:
runs-on: ubuntu-latest
if: (github.event.workflow_run.event != 'release') && (github.event.workflow_run.event != 'push')
if: github.event.workflow_run.event == 'pull_request'
steps:
- uses: styfle/cancel-workflow-action@0.8.0
with:
Expand Down

0 comments on commit de804a6

Please sign in to comment.