Skip to content

Commit

Permalink
chore(ci): use github.head_ref instead of .ref for concurrency
Browse files Browse the repository at this point in the history
  • Loading branch information
xiehan committed Dec 11, 2023
1 parent 691d836 commit 7c50f41
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .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.

2 changes: 1 addition & 1 deletion projenrc/auto-approve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export class AutoApprove {
},
});

(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
2 changes: 1 addition & 1 deletion projenrc/automerge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ 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

0 comments on commit 7c50f41

Please sign in to comment.