ss3-source-code
ss3-source-code copied to clipboard
[Workflows]: Add portion to all ss3 repos workflows to cancel a previous run if a new push is made
Issue description
@kellijohnson-NOAA found the following code to solve the problem when you push code up to a branch many times, it fails quickly, and then you push new code up before all the checks are done running.
This would definitely need some testing to see if/what would replace the ${{ github.ref }} portion since we aren't really using those for each PR.
Cancel active CI runs for a PR before starting another run
concurrency: group: ${{ github.workflow}}-${{ github.ref }} cancel-in-progress: true
Summary of issue history, discussion, and major aspects of code development
- No history of issue. Workflows based.
Items to do
- [ ] Test adding to ss3-source-code or ss3-doc builds
- [ ] Test if github-ref is needed and figure out replacement
Does documentation already exist in the SS3 User Manual?
No, the documentation that should be added to the SS3 User Manual pertaining to this issue is provided below.
Documentation to add to the SS3 User Manual OR link to existing documentation
- NA
Are r4ss changes needed?
No, this issue doesn't require changes to r4ss
Are SSI changes needed?
No, this issue doesn't require changes to SSI