dwm-custom/.forgejo/workflows/void-packages.yml

36 lines
1.2 KiB
YAML
Raw Normal View History

2024-05-22 18:45:23 +02:00
name: Update void-packages template
on:
push:
tags: ["*"]
jobs:
update-template:
name: Update xbps-src template
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.FORGEJO_PUSH_TOKEN }}
2024-05-22 18:47:56 +02:00
repository: "snailed/void-packages"
sparse-checkout: "srcpkgs/dwm-custom/"
ref: "master"
2024-05-22 18:45:23 +02:00
2024-05-22 18:47:56 +02:00
- name: Modify template
2024-05-22 18:45:23 +02:00
id: checksum
run: |
2024-05-22 18:47:56 +02:00
sed -i '/version=/ c version=${{ github.ref_name }}' srcpkgs/dwm-custom/template
2024-05-22 18:45:23 +02:00
2024-05-22 18:47:56 +02:00
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
2024-05-22 18:45:23 +02:00
- name: Commit
uses: https://github.com/stefanzweifel/git-auto-commit-action@3ea6ae190baf489ba007f7c92608f33ce20ef04a # v4.16.0
with:
commit_user_name: "Johnny5"
commit_user_email: "bot@snaile.de"
commit_author: "Johnny5 <bot@snaile.de>"
2024-05-22 18:47:56 +02:00
commit_message: "dwm-custom: update to ${{ github.ref_name }}."