Docker and CI/CD · Middle · Question 34 of 75
What does this do?
``yaml
concurrency:
group: deploy-${{ github.ref }}
cancel-in-progress: true
- 1Allows only one job at a time across all repositories
- 2Runs every job of the workflow in parallel
- ✓Correct answer: A new run cancels the older one for the same branch
Explanation
Pushing three times quickly then runs CI only for the last push. For production deploys you may prefer queueing over cancelling a deploy halfway.