Skip to content

Commit

Permalink
Include image name in GH action job concurrency group
Browse files Browse the repository at this point in the history
  • Loading branch information
lahma committed Nov 29, 2023
1 parent b94f4c1 commit 892020c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
runs-on: macos-latest
timeout-minutes: 30
concurrency:
group: ${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.run_id }}
group: ${{ github.workflow }} macos-latest @ ${{ github.event.pull_request.head.label || github.head_ref || github.run_id }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -93,7 +93,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 30
concurrency:
group: ${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.run_id }}
group: ${{ github.workflow }} ubuntu-latest @ ${{ github.event.pull_request.head.label || github.head_ref || github.run_id }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -136,7 +136,7 @@ jobs:
runs-on: windows-latest
timeout-minutes: 30
concurrency:
group: ${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.run_id }}
group: ${{ github.workflow }} windows-latest @ ${{ github.event.pull_request.head.label || github.head_ref || github.run_id }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ build_script:
- sh: ./build.cmd Test

artifacts:
- path: src/*/obj/**
- path: src/*/bin/**
- path: output/test-results/*.trx
- path: output/test-results/*.xml
- path: 'src/*/obj/**'
- path: 'src/*/bin/**'
- path: 'output/test-results/*.trx'
- path: 'output/test-results/*.xml'
- path: output/coverage-report.zip

environment:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public override void Write(CustomFileWriter writer)
{
// create a default value that only cancels in-progress runs of the same workflow
// we don't fall back to github.ref which would disable multiple runs in main/master which is usually what is wanted
group = "${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.run_id }}";
group = $"${{{{ github.workflow }}}} {Image.GetValue()} @ ${{{{ github.event.pull_request.head.label || github.head_ref || github.run_id }}}}";
}

writer.WriteLine($"group: {group}");
Expand Down

0 comments on commit 892020c

Please sign in to comment.