Skip to content

Commit

Permalink
chore(ci): fix syntax for concurrency in workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
xiehan committed Aug 28, 2024
1 parent db9949a commit 7165265
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/auto-approve.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion .github/workflows/automerge.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion .github/workflows/upgrade-cdktf.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions projenrc/auto-approve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ export class AutoApprove {
},
});

(workflow.concurrency as any) =
"${{ github.workflow }}-${{ github.head_ref }}";
(workflow.concurrency as any) = {
group: "${{ github.workflow }}-${{ github.ref }}",
};

const maintainerStatuses = `fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]')`;
workflow.addJobs({
Expand Down
5 changes: 3 additions & 2 deletions projenrc/automerge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ export class Automerge {
},
});

(workflow.concurrency as any) =
"${{ github.workflow }}-${{ github.head_ref }}";
(workflow.concurrency as any) = {
group: "${{ github.workflow }}-${{ github.ref }}",
};

const maintainerStatuses = `fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]')`;
workflow.addJobs({
Expand Down
4 changes: 3 additions & 1 deletion projenrc/upgrade-cdktf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ export class UpgradeCDKTF {
workflowDispatch: {}, // allow manual triggering
});

(workflow.concurrency as any) = "${{ github.workflow }}-${{ github.ref }}";
(workflow.concurrency as any) = {
group: "${{ github.workflow }}-${{ github.ref }}",
};

workflow.addJobs({
upgrade: {
Expand Down

0 comments on commit 7165265

Please sign in to comment.