2024-05-23 15:42:13 +02:00
|
|
|
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
|
|
|
|
name: Update void-packages template
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags: ["*"]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
update-template:
|
|
|
|
name: Update xbps-src template
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-10-23 18:01:46 +02:00
|
|
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
2024-05-23 15:42:13 +02:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
token: ${{ secrets.FORGEJO_PUSH_TOKEN }}
|
|
|
|
repository: "snailed/void-packages"
|
|
|
|
sparse-checkout: "srcpkgs/tokyonight-theme/"
|
|
|
|
ref: "master"
|
|
|
|
|
|
|
|
- name: Modify template
|
|
|
|
id: checksum
|
|
|
|
run: |
|
|
|
|
sed -i '/version=/ c version=${{ github.ref_name }}' srcpkgs/tokyonight-theme/template
|
|
|
|
|
|
|
|
wget https://git.snaile.de/snailed/tokyonight-theme/archive/${{ github.ref_name }}.tar.gz
|
|
|
|
sha256sum="$(sha256sum ${{ github.ref_name }}.tar.gz | cut -d ' ' -f 1)"
|
|
|
|
sed -i "/checksum=/ c checksum=${sha256sum}" srcpkgs/tokyonight-theme/template
|
|
|
|
sed -i "/revision=/ c revision=1" srcpkgs/tokyonight-theme/template
|
|
|
|
|
|
|
|
- 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>"
|
|
|
|
commit_message: "tokyonight-theme: update to ${{ github.ref_name }}."
|