From 03e8734eb23e69ec59c68a213237277bcffa289d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20N=C3=BCtzi?= Date: Tue, 9 Jul 2024 18:35:59 +0200 Subject: [PATCH] fix: typo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Gabriel Nützi --- .github/workflows/normal.yaml | 2 +- tools/ci/create-github-release.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/normal.yaml b/.github/workflows/normal.yaml index aa968b8..152c0a0 100644 --- a/.github/workflows/normal.yaml +++ b/.github/workflows/normal.yaml @@ -208,5 +208,5 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | ./tools/ci/create-github-release.sh \ - "$GITHUB_REF" \ + "${GITHUB_REF#refs/tags/}" \ "$GITHUB_REPOSITORY" diff --git a/tools/ci/create-github-release.sh b/tools/ci/create-github-release.sh index dca3e4e..877e1c9 100755 --- a/tools/ci/create-github-release.sh +++ b/tools/ci/create-github-release.sh @@ -11,7 +11,7 @@ function main() { local prepare_tag="$1" local repo="$2" - local tag=${prepare_tag#*prepare-} + local tag=${prepare_tag#prepare-} local version=${tag#v} print_info "Creating Github release ... "