From 2b75fa2347f32b1c3550eef63d19e05770378e22 Mon Sep 17 00:00:00 2001 From: Phi Date: Fri, 10 Jan 2025 17:18:34 +0100 Subject: [PATCH] fix: handle 'v' prefix in release tag validation fix: handle 'v' prefix in release tag validation --- .github/workflows/create-release-issue.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/create-release-issue.yml b/.github/workflows/create-release-issue.yml index 16dd7e48bc8..4635d23b621 100644 --- a/.github/workflows/create-release-issue.yml +++ b/.github/workflows/create-release-issue.yml @@ -57,15 +57,19 @@ jobs: - env: GITHUB_TOKEN: ${{ github.token }} run: | + # Remove any 'v' prefix from the tag + TAG="${{ github.event.inputs.tag }}" + TAG="${TAG#v}" + echo "Debug values:" echo "Type: ${{ github.event.inputs.type }}" - echo "Tag: ${{ github.event.inputs.tag }}" + echo "Tag: $TAG" echo "Level: ${{ github.event.inputs.level }}" go run cmd/release/main.go create-issue \ --create-on-github true \ --type "${{ github.event.inputs.type }}" \ - --tag "${{ github.event.inputs.tag }}" \ + --tag "$TAG" \ --level "${{ github.event.inputs.level }}" \ --network-upgrade "${{ github.event.inputs.network-upgrade }}" \ --discussion-link "${{ github.event.inputs.discussion-link }}" \ @@ -73,3 +77,4 @@ jobs: --rc1-date "${{ github.event.inputs.rc1-date }}" \ --stable-date "${{ github.event.inputs.stable-date }}" \ --repo "filecoin-project/lotus" + \ No newline at end of file