bugfix pipeline
Update void-packages template / Update xbps-src template (push) Failing after 35s Details

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

View File

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