1
0
Fork 0
mirror of synced 2024-05-19 03:52:47 +12:00

Workflows: Fix deb action

This commit is contained in:
loathingKernel 2023-09-02 22:43:45 +03:00
parent ff2b9f2605
commit a1a9d3ed57
No known key found for this signature in database
GPG key ID: CE0C72D0B53821FD
2 changed files with 7 additions and 3 deletions

View file

@ -15,6 +15,7 @@ jobs:
tag_offset: ${{ steps.version.outputs.tag_offset }}
sha_short: ${{ steps.version.outputs.sha_short }}
full_desc: ${{ steps.version.outputs.full_desc }}
branch: ${{ steps.version.outputs.branch }}
steps:
- uses: actions/checkout@v3
with:
@ -28,6 +29,7 @@ jobs:
echo "tag_offset=$(git rev-list $tag_abbrev..HEAD --count)" >> $GITHUB_OUTPUT
echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
echo "full_desc=$(git describe --long --tags)" >> $GITHUB_OUTPUT
echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
deb-package:
needs: version
@ -42,8 +44,10 @@ jobs:
- name: Prepare source directory
run: |
git clone https://mpr.makedeb.org/rare build
sed -i 's/source=.*/source=("rare-test::git+$url")/g' build/PKGBUILD
sed -i "s/\$pkgver/${{ needs.version.outputs.tag_abbrev }}.${{ needs.version.outputs.tag_offset }}/g" build/PKGBUILD
sed '/^pkgver=/d' -i build/PKGBUILD
sed '/^source=/d' -i build/PKGBUILD
echo "pkgver=${{ needs.version.outputs.tag_abbrev }}.${{ needs.version.outputs.tag_offset }}" >> build/PKGBUILD
echo "source=(\"\$pkgname-\$pkgver::git+https://github.com/${{github.repository}}#branch=${{ needs.version.outputs.branch }}\")" >> build/PKGBUILD
- name: build deb
run: |

View file

@ -46,7 +46,7 @@ jobs:
- name: Prepare source directory
run: |
git clone https://mpr.makedeb.org/rare build
sed -i "s/pkgver=.*/pkgver=${{ github.event.release.tag_name }}/g" build/PKGBUILD
sed "s/pkgver=.*/pkgver=${{ github.event.release.tag_name }}/g" -i build/PKGBUILD
- name: build deb
run: |