File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1313 pull-requests : write
1414 runs-on : ubuntu-latest
1515 environment : review
16- concurrency : deploy-review-${{ github.ref }}
16+ # Prevent concurrent jobs on the same environment and between deploy and delete workflows
17+ concurrency : deploy-review-${{ github.event.pull_request.number }}
1718
1819 steps :
1920 - name : Checkout code
Original file line number Diff line number Diff line change 44 push :
55 branches : [main]
66
7+ # Set concurrency at the workflow level to ensure the same commit runs tests and deployment consistently
8+ concurrency : deploy-workflow-main
9+
710jobs :
811 metadata :
912 name : ' Set CI/CD metadata'
Original file line number Diff line number Diff line change 2525 environment : ${{ fromJson(inputs.environments) }}
2626 max-parallel : 1
2727 environment : ${{ matrix.environment }}
28- concurrency : deploy-${{ matrix.environment }}-${{ github.ref }}
28+ # Prevent concurrent jobs on the same environment and between deploy and delete workflows
29+ concurrency : deploy-${{ matrix.environment }}-${{inputs.pr_number}}
2930
3031 steps :
3132 - name : Checkout code
You can’t perform that action at this time.
0 commit comments