This repo tests using the Cancel Workflow Action. Specifically, it tests that previous workflows on a PR are canceled when new commits are made to the PR. It affirms that the workflows of PR1 from a fork are not canceled by new commits to PR2 from a fork. The action manages this by only canceling previously running workflows for that branch. Tests performed:
- Cancel workflow is not run on push to main (on PR merge)
- Cancel workflow is run on every commit to a PR
- Cancel workflow cancels previous workflow runs upon new commits to a PR
- Workflows of PR1 are not canceled by new commits to PR2
- Multiple workflows can be specified in the Cancel workflow
- Cancel workflow from a PR does not cancel workflows running from
main