We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
concurrency
1 parent 40aefb0 commit 6932b1cCopy full SHA for 6932b1c
1 file changed
pr-checks/sync.ts
@@ -156,6 +156,11 @@ function main(): void {
156
workflowInputs = checkSpecification.inputs;
157
}
158
159
+ let extraGroupName = "";
160
+ for (const inputName of Object.keys(workflowInputs)) {
161
+ extraGroupName += "-${{inputs." + inputName + "}}";
162
+ }
163
+
164
const workflow = {
165
name: `PR Check - ${checkSpecification.name}`,
166
env: {
@@ -185,6 +190,11 @@ function main(): void {
185
190
shell: "bash",
186
191
},
187
192
193
+ concurrency: {
194
+ "cancel-in-progress":
195
+ "${{ github.event_name == 'pull_request' || false }}",
196
+ group: checkName + "-${{github.ref}}" + extraGroupName,
197
+ },
188
198
jobs: {
189
199
[checkName]: checkJob,
200
0 commit comments