diff --git a/.forgejo/workflows/autoupdate-socialstreamninja.yml b/.forgejo/workflows/autoupdate-socialstreamninja.yml new file mode 100644 index 0000000..6a6caea --- /dev/null +++ b/.forgejo/workflows/autoupdate-socialstreamninja.yml @@ -0,0 +1,30 @@ +name: autoupdate-socialstreamninja +on: + schedule: + - cron: '29 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-socialstreamninja.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 "socialstreamninja: update to $(jq -r .version bucket/socialstreamninja.json)" + git push + fi \ No newline at end of file