Skip to content
This repository was archived by the owner on Oct 11, 2025. It is now read-only.

Commit 35f307a

Browse files
author
Tuxx
committed
everyday i'm github-actions --force-pushin'
1 parent dcdf6b8 commit 35f307a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,15 @@ jobs:
9191
cd packages/aur/fancylock-bin
9292
git clone ssh://[email protected]/fancylock-bin.git aur-upstream
9393
cp -r aur-upstream/.git ./
94-
95-
sed "s/@VERSION@/${{ github.ref_name#v }}/g" .SRCINFO.template > .SRCINFO
94+
rm -rf aur-upstream
95+
VERSION="${GITHUB_REF##*/}"
96+
VERSION="${VERSION#v}"
97+
sed "s/@VERSION@/$VERSION/g" PKGBUILD.template > PKGBUILD
98+
sed "s/@VERSION@/$VERSION/g" .SRCINFO.template > .SRCINFO
9699
git add PKGBUILD .SRCINFO
97100
git config user.email "aur@fancylock"
98101
git config user.name "FancyLock Bot"
99-
git commit -m "Release ${{ github.ref_name }}"
102+
git commit -m "Release v$VERSION"
100103
git push origin master
101104
env:
102105
AUR_SSH_KEY: ${{ secrets.AUR_SSH_KEY }}

0 commit comments

Comments
 (0)