The following three workflows run daily on a schedule:
.github/workflows/update-metadata.yml
.github/workflows/generate-reports.yml
.github/workflows/consolidate-metadata.yml
None of them currently have a concurrency block.
Proposed change:
Add this at the top of each workflow:
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
Benefits:
- Prevents two instances of the same workflow from running at the same time.
- Cancels the older run if a new one starts.
- Avoids potential git push conflicts and race conditions on JSON files.
The following three workflows run daily on a schedule:
.github/workflows/update-metadata.yml.github/workflows/generate-reports.yml.github/workflows/consolidate-metadata.ymlNone of them currently have a
concurrencyblock.Proposed change:
Add this at the top of each workflow:
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
Benefits: