mirror of
https://github.com/github/codeql-action
synced 2026-05-23 20:00:54 +03:00
Add concurrency settings
This commit is contained in:
@@ -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,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user