From 8f14fce393f56c712629f44993f30817bd1a4f6e Mon Sep 17 00:00:00 2001 From: Bernd Schoolmann Date: Sat, 4 May 2024 06:10:20 +0200 Subject: [PATCH] Fix version parsing in publish to aur ci --- .github/workflows/release.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cbaeec4..56e3057 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -207,8 +207,13 @@ jobs: uses: actions/checkout@v1 - name: Write version run: echo "${GITHUB_REF#refs/tags/}" > ./cli/cmd/version.txt + - name: Write release version + run: | + VERSION=${GITHUB_REF_NAME#v} + echo Version: $VERSION + echo "VERSION=$VERSION" >> $GITHUB_ENV - name: Replace version in PKGBUILD - run: sed -i "s/pkgver=.*/pkgver=${{ github.event.release.tag_name }}/" ./.github/workflows/PKGBUILD + run: sed -i "s/pkgver=.*/pkgver=${VERSION}/" ./.github/workflows/PKGBUILD - name: Publish AUR package uses: KSXGitHub/github-actions-deploy-aur@v2.7.0 with: