Add .forgejo/workflows/autoupdate-fxsound.yml

This commit is contained in:
Jonas8272 committed 2026-11-21 15:03:52 +00:00
1 parent bf32f177fa
commit ee1c26734f
1 file changed
+30
+30
View File
@@ -0,0 +1,30 @@
name: autoupdate-fxsound
on:
schedule:
- cron: '41 4 * * *'
workflow_dispatch:
jobs:
update:
runs-on: ubuntu-latest
container:
image: data.forgejo.org/oci/node:20-bookworm
steps:
- name: Install tools
run: apt-get update -qq && apt-get install -y -qq jq
- uses: actions/checkout@v4
- name: Update manifest
env:
GH_API_TOKEN: ${{ secrets.GH_API_TOKEN }}
run: tr -d '\r' < scripts/update-fxsound.sh | bash
- name: Commit and push
run: |
git config user.name "autoupdate"
git config user.email "[email protected]"
if ! git diff --quiet; then
git commit -am "fxsound: update to $(jq -r .version bucket/fxsound.json)"
git push
fi