Add concurrency settings

This commit is contained in:
Michael B. Gale
2026-02-28 16:22:11 +00:00
parent 40aefb0faf
commit 6932b1cda2
+10
View File
@@ -156,6 +156,11 @@ function main(): void {
workflowInputs = checkSpecification.inputs;
}
let extraGroupName = "";
for (const inputName of Object.keys(workflowInputs)) {
extraGroupName += "-${{inputs." + inputName + "}}";
}
const workflow = {
name: `PR Check - ${checkSpecification.name}`,
env: {
@@ -185,6 +190,11 @@ function main(): void {
shell: "bash",
},
},
concurrency: {
"cancel-in-progress":
"${{ github.event_name == 'pull_request' || false }}",
group: checkName + "-${{github.ref}}" + extraGroupName,
},
jobs: {
[checkName]: checkJob,
},