Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): use github.head_ref instead of .ref for concurrency #170

Merged
merged 2 commits into from
Dec 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/auto-approve.yml

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

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

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

1 change: 1 addition & 0 deletions .projen/deps.json

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

4 changes: 2 additions & 2 deletions .projen/tasks.json

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

1 change: 1 addition & 0 deletions .projenrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const project = new ConstructLibraryCdktf({
repositoryUrl: "https://github.com/cdktf/cdktf-multi-stack-tfe.git",
description: `Sets up TFE / TFC workspaces for all stacks based on a seed stack.`,
jsiiVersion: "~5.2.0",
typescriptVersion: "~5.2.0", // should always be the same major/minor as JSII
licensed: false,
prettier: true,
projenrcTs: true,
Expand Down
2 changes: 1 addition & 1 deletion package.json

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

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

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

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

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

const maintainerStatuses = `fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]')`;
workflow.addJobs({
Expand Down
7 changes: 1 addition & 6 deletions yarn.lock

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