bugfix pipeline
Update void-packages template / Update xbps-src template (push) Successful in 39s Details

This commit is contained in:
Luca Bilke 2024-05-22 18:47:56 +02:00
parent 065e2b63e7
commit 17ddfe5f8e
No known key found for this signature in database
GPG Key ID: B753481DA0B6FA47
1 changed files with 9 additions and 9 deletions

View File

@ -8,23 +8,23 @@ jobs:
update-template:
name: Update xbps-src template
runs-on: ubuntu-latest
needs: release
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.FORGEJO_PUSH_TOKEN }}
repository: "https://git.snaile.de/snailed/void-packages"
repository: "snailed/void-packages"
sparse-checkout: "srcpkgs/dwm-custom/"
ref: "master"
- name: Get checksum
- name: Modify template
id: checksum
run: |
echo "sha256sum=$(curl -s https://git.snaile.de/snailed/dwm-custom/archive/${{ github.ref }}.tar.gz | sha256sum | cut -d ' ' -f 1)" >>$GITHUB_OUTPUT
sed -i '/version=/ c version=${{ github.ref_name }}' srcpkgs/dwm-custom/template
- name: Replace checksum and version
run: |
sed -i 's/version=[0-9]\+\.[0-9]\+\.[0-9]\+/version=${{ github.ref }}/' srcpkgs/dwm-custom/template
sed -i 's/checksum=.\+/checksum=${{ steps.checksum.outputs.sha256 }}/' srcpkgs/dwm-custom/template
wget https://git.snaile.de/snailed/dwm-custom/archive/${{ github.ref_name }}.tar.gz
sha256sum="$(sha256sum ${{ github.ref_name }}.tar.gz | cut -d ' ' -f 1)"
sed -i "/checksum=/ c checksum=${sha256sum}" srcpkgs/dwm-custom/template
- name: Commit
uses: https://github.com/stefanzweifel/git-auto-commit-action@3ea6ae190baf489ba007f7c92608f33ce20ef04a # v4.16.0
@ -32,4 +32,4 @@ jobs:
commit_user_name: "Johnny5"
commit_user_email: "bot@snaile.de"
commit_author: "Johnny5 <bot@snaile.de>"
commit_message: "dwm-custom: update to ${{ github.ref }}."
commit_message: "dwm-custom: update to ${{ github.ref_name }}."