File tree Expand file tree Collapse file tree 2 files changed +16
-8
lines changed Expand file tree Collapse file tree 2 files changed +16
-8
lines changed Original file line number Diff line number Diff line change 45
45
# Exclude the template configuration files
46
46
- " !config/clusters/templates"
47
47
48
- # When multiple PRs triggering this workflow are merged, queue them instead
49
- # of running them in parallel
50
- # https://github.blog/changelog/2021-04-19-github-actions-limit-workflow-run-or-job-concurrency/
51
- concurrency : deploy
48
+ # Queue triggered executions of this workflow stemming from pushes to avoid
49
+ # deployment conflicts.
50
+ #
51
+ # By using a different concurrency groups for pull requests and pushes, we
52
+ # reduce the risk of cancelling a queued but not started workflow as discussed
53
+ # in https://github.com/2i2c-org/infrastructure/issues/3214.
54
+ #
55
+ # github.head_ref is used to create PR unique concurrency groups, and for
56
+ # workflow executions not triggered by a PR we get a dedicated group.
57
+ #
58
+ # ref: https://docs.github.com/en/actions/using-jobs/using-concurrency
59
+ #
60
+ concurrency : ${{ github.workflow }}-${{ github.head_ref || 'not-a-pr' }}
52
61
53
62
# This environment variable triggers the deployer to colourise print statements in the
54
63
# GitHug Actions logs for easy reading
Original file line number Diff line number Diff line change 14
14
# The way terraform is deployed might have changed!
15
15
- .github/workflows/ensure-uptime-checks.yaml
16
16
17
- # When multiple PRs triggering this workflow are merged, queue them instead
18
- # of running them in parallel
19
- # https://github.blog/changelog/2021-04-19-github-actions-limit-workflow-run-or-job-concurrency/
20
- concurrency : uptime-checks
17
+ # Queue executions of this workflow to avoid conflicts
18
+ # ref: https://docs.github.com/en/actions/using-jobs/using-concurrency
19
+ concurrency : ${{ github.workflow }}
21
20
22
21
# This environment variable triggers the deployer to colourise print statements in the
23
22
# GitHub Actions logs for easy reading
You can’t perform that action at this time.
0 commit comments