From 808c05a818b8c50fd855eb0ab055ee3e6c32ea27 Mon Sep 17 00:00:00 2001 From: Margen67 Date: Mon, 28 Feb 2022 06:54:53 -0800 Subject: [PATCH] CI: Fix tag conflicts --- .github/workflows/CI.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 1b3e0b4d6..91fa59440 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -81,6 +81,8 @@ jobs: $branch=$($env:GITHUB_REF -replace 'refs/heads/', '') $title="${tag}_$branch" gh release create $tag $asset --target $env:GITHUB_SHA -t $title - gh release delete $branch -y + # Remove canary_ to prevent conflicts from tag + $tag=$($branch -replace 'canary_', '') + gh release delete $tag -y If ($LastExitCode -ne 0) { echo "LastExitCode = $LastExitCode";$LastExitCode = 0 } - gh release create $branch $asset --target $env:GITHUB_SHA -t $branch + gh release create $tag $asset --target $env:GITHUB_SHA -t $branch