Changes how version tag is set in action

This commit is contained in:
Gizzy
2024-12-20 11:22:36 +00:00
parent 3a0941c67c
commit 9d337fa315

View File

@@ -178,9 +178,8 @@ jobs:
dist/macos/*.dmg
dist/combined.yml
- name: Set version output
run: echo "releasever=${{ steps.create_release.outputs.tag_name }}" >> $GITHUB_ENV
outputs:
version_tag: ${{ steps.version.outputs.version }}
aur:
name: Publish to AUR
runs-on: ubuntu-latest
@@ -200,9 +199,10 @@ jobs:
- name: Extract checksum from sha256sum.txt and change build version
run: |
echo releasever
new_checksum=$(awk 'NR==1 { print $1 }' ./sha256sum.txt)
sed -i "s|sha256sums=('SKIP' 'SKIP')|sha256sums=('$new_checksum' 'SKIP')|" ./build/PKGBUILD
sed -i "s|pkgver=\"\"|pkgver=\"$releasever\"|" ./build/PKGBUILD
sed -i "s/^pkgver=.*$/pkgver=${{ needs.release.outputs.version_tag }}/" ./build/PKGBUILD
- name: Publish AUR package
uses: KSXGitHub/github-actions-deploy-aur@3.0.1