From 3b6c0ea6f5bd308cf941e89e891416372ea50156 Mon Sep 17 00:00:00 2001 From: Mathieu Gamache Date: Mon, 16 Dec 2024 15:02:08 -0500 Subject: [PATCH 1/8] fix(build): add --skip-duplicate option to nuget push command --- Build.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Build.ps1 b/Build.ps1 index 274e34b..85a9c8f 100644 --- a/Build.ps1 +++ b/Build.ps1 @@ -26,7 +26,7 @@ Process { Exec { & dotnet pack -c Release -o "$outputDir" } if (($null -ne $env:NUGET_SOURCE ) -and ($null -ne $env:NUGET_API_KEY)) { - Exec { & dotnet nuget push "$nupkgsPath" -s $env:NUGET_SOURCE -k $env:NUGET_API_KEY } + Exec { & dotnet nuget push "$nupkgsPath" -s $env:NUGET_SOURCE -k $env:NUGET_API_KEY --skip-duplicate } } } finally { From c9e9b7565e3c0abca214aca091d0372a7797e382 Mon Sep 17 00:00:00 2001 From: Mathieu Gamache Date: Mon, 16 Dec 2024 15:26:27 -0500 Subject: [PATCH 2/8] Trying concurrency feature --- .github/workflows/ci.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 32b1e85..62cc362 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -8,7 +8,12 @@ on: push: branches: - "renovate/**" + - "feature/**" +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: ci: runs-on: ubuntu-latest From fdd270e48658bebf83920c1efd8f026d25abe6a1 Mon Sep 17 00:00:00 2001 From: Mathieu Gamache Date: Mon, 16 Dec 2024 15:31:09 -0500 Subject: [PATCH 3/8] Try fixing concurrency --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 62cc362..62d5885 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -11,7 +11,7 @@ on: - "feature/**" concurrency: - group: ${{ github.workflow }}-${{ github.ref }} + group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }} cancel-in-progress: true jobs: From d2f843a7f48c7a4f5178b09c885eb0f8c62e88cb Mon Sep 17 00:00:00 2001 From: Mathieu Gamache Date: Mon, 16 Dec 2024 15:34:24 -0500 Subject: [PATCH 4/8] Add explication --- .github/workflows/ci.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 62d5885..74b4fc1 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -8,8 +8,8 @@ on: push: branches: - "renovate/**" - - "feature/**" - + +# Prevent duplicate runs if renovate fallback to create a PR concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }} cancel-in-progress: true From cc6241b8d31fcd979be6d27288cb36280f8d9645 Mon Sep 17 00:00:00 2001 From: Mathieu Gamache Date: Mon, 16 Dec 2024 15:35:14 -0500 Subject: [PATCH 5/8] Fix word --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 74b4fc1..99973f6 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -9,7 +9,7 @@ on: branches: - "renovate/**" -# Prevent duplicate runs if renovate fallback to create a PR +# Prevent duplicate runs if Renovate falls back to creating a PR concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }} cancel-in-progress: true From 5bc5b753f77fd17db10d86e6ee66cc29e8ba51b0 Mon Sep 17 00:00:00 2001 From: Mathieu Gamache Date: Mon, 16 Dec 2024 15:46:54 -0500 Subject: [PATCH 6/8] Cleanup --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 99973f6..d3db2ac 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -11,7 +11,7 @@ on: # Prevent duplicate runs if Renovate falls back to creating a PR concurrency: - group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }} + group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }} cancel-in-progress: true jobs: From e6308dfe930faec4d0e13b9e67c9a82e84ba71ce Mon Sep 17 00:00:00 2001 From: Mathieu Gamache Date: Mon, 16 Dec 2024 16:27:36 -0500 Subject: [PATCH 7/8] Try finding single var --- .github/workflows/ci.yaml | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d3db2ac..b0a59fc 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -8,17 +8,33 @@ on: push: branches: - "renovate/**" + - "feature/**" # Prevent duplicate runs if Renovate falls back to creating a PR -concurrency: - group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }} - cancel-in-progress: true +# concurrency: +# group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }} +# cancel-in-progress: true jobs: ci: runs-on: ubuntu-latest + steps: + - name: Log GitHub Context Variables + run: | + echo "head_ref: ${{ github.head_ref }}" + echo "ref_name: ${{ github.ref_name }}" + echo "ref: ${{ github.ref }}" + echo "sha: ${{ github.sha }}" + echo "workflow: ${{ github.workflow }}" + echo "event_name: ${{ github.event_name }}" + echo "actor: ${{ github.actor }}" + echo "repository: ${{ github.repository }}" + echo "repository_owner: ${{ github.repository_owner }}" + echo "run_id: ${{ github.run_id }}" + echo "run_number: ${{ github.run_number }}" + - uses: actions/checkout@v4 with: fetch-depth: 0 From f55a7d264dfa4ad70beee0fbc1c42214e35c438c Mon Sep 17 00:00:00 2001 From: Mathieu Gamache Date: Mon, 16 Dec 2024 16:30:11 -0500 Subject: [PATCH 8/8] Remove experiment --- .github/workflows/ci.yaml | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index b0a59fc..23a16aa 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -8,12 +8,11 @@ on: push: branches: - "renovate/**" - - "feature/**" # Prevent duplicate runs if Renovate falls back to creating a PR -# concurrency: -# group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }} -# cancel-in-progress: true +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }} + cancel-in-progress: true jobs: ci: @@ -21,20 +20,6 @@ jobs: steps: - - name: Log GitHub Context Variables - run: | - echo "head_ref: ${{ github.head_ref }}" - echo "ref_name: ${{ github.ref_name }}" - echo "ref: ${{ github.ref }}" - echo "sha: ${{ github.sha }}" - echo "workflow: ${{ github.workflow }}" - echo "event_name: ${{ github.event_name }}" - echo "actor: ${{ github.actor }}" - echo "repository: ${{ github.repository }}" - echo "repository_owner: ${{ github.repository_owner }}" - echo "run_id: ${{ github.run_id }}" - echo "run_number: ${{ github.run_number }}" - - uses: actions/checkout@v4 with: fetch-depth: 0