Fix PKGBUILD.ci - reverse naming, artifact collection
All checks were successful
Archlinux build / build-arch (push) Successful in 4m3s
Debian build / build-ubuntu (push) Successful in 3m41s

This commit is contained in:
Alexey Khromov 2025-04-13 22:44:38 +03:00
parent 416795159f
commit 52b3b230b9
2 changed files with 3 additions and 3 deletions

View File

@ -34,7 +34,7 @@ jobs:
run: | run: |
echo "BFORCE_VER=$(cat /builder/src/bforce/source/.version)-$(date +%Y%M%d)" >> $GITHUB_ENV echo "BFORCE_VER=$(cat /builder/src/bforce/source/.version)-$(date +%Y%M%d)" >> $GITHUB_ENV
- name: Retrieving artifact files - name: Retrieving artifact files
run: mkdir bforce && cp /builder/bforce-r*.pkg.tar.zst bforce run: mkdir bforce && cp /builder/bforce-*.pkg.tar.zst bforce
- name: Try to upload artifacts - name: Try to upload artifacts
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:

View File

@ -26,9 +26,9 @@ prepare() {
pkgver() { pkgver() {
cd "$pkgname" cd "$pkgname"
if [ "${GITHUB_REF_TYPE}" = "tags" ]; then if [ "${GITHUB_REF_TYPE}" = "tags" ]; then
printf "r%s.%s.%s" "$(git rev-list --count ${GITHUB_SHA})" "$(git rev-parse --short ${GITHUB_SHA})" "${GITHUB_REF_NAME}"
else
printf "v%s" "${GITHUB_REF_NAME}" printf "v%s" "${GITHUB_REF_NAME}"
else
printf "r%s.%s.%s" "$(git rev-list --count ${GITHUB_SHA})" "$(git rev-parse --short ${GITHUB_SHA})" "${GITHUB_REF_NAME}"
fi fi
} }