Fix version parsing in publish to aur ci

This commit is contained in:
Bernd Schoolmann 2024-05-04 06:10:20 +02:00 committed by GitHub
parent 24e34794f6
commit 8f14fce393
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 1 deletions

View File

@ -207,8 +207,13 @@ jobs:
uses: actions/checkout@v1 uses: actions/checkout@v1
- name: Write version - name: Write version
run: echo "${GITHUB_REF#refs/tags/}" > ./cli/cmd/version.txt 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 - 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 - name: Publish AUR package
uses: KSXGitHub/github-actions-deploy-aur@v2.7.0 uses: KSXGitHub/github-actions-deploy-aur@v2.7.0
with: with: