From ee1c26734f56d7c25b2908dba90435a691e2ea22 Mon Sep 17 00:00:00 2001 From: Jonas8272 Date: Sat, 21 Nov 2026 15:03:52 +0000 Subject: [PATCH] Add .forgejo/workflows/autoupdate-fxsound.yml --- .forgejo/workflows/autoupdate-fxsound.yml | 30 +++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .forgejo/workflows/autoupdate-fxsound.yml diff --git a/.forgejo/workflows/autoupdate-fxsound.yml b/.forgejo/workflows/autoupdate-fxsound.yml new file mode 100644 index 0000000..f5fcaee --- /dev/null +++ b/.forgejo/workflows/autoupdate-fxsound.yml @@ -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 "autoupdate@users.noreply.codefloe.com" + if ! git diff --quiet; then + git commit -am "fxsound: update to $(jq -r .version bucket/fxsound.json)" + git push + fi \ No newline at end of file