Skip to content

Commit

Permalink
ci: 尝试将 pr 和 issue 放在同一个并发组
Browse files Browse the repository at this point in the history
  • Loading branch information
he0119 committed Jan 1, 2025
1 parent 1a3b7ab commit b283720
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/noneflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ on:
types: [submitted]

concurrency:
group: ${{ github.workflow }}-${{ github.event.issue.number || github.run_id }}
group: ${{ github.workflow }}-${{ github.event.issue.number && format('publish/issue{0}', github.event.issue.number) || github.head_ref || github.run_id }}
cancel-in-progress: ${{ contains(github.head_ref, 'publish/issue')}}

jobs:
noneflow:
Expand Down

0 comments on commit b283720

Please sign in to comment.