mirror of
https://codefloe.com/Jonas8272/scoop-bucket.git
synced 2026-11-30 23:09:35 +00:00
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01XFn3QekarqiDEYnrbupCyz
30 lines
848 B
YAML
30 lines
848 B
YAML
name: autoupdate-socialstreamninja
|
|
on:
|
|
schedule:
|
|
- cron: '29 */6 * * *'
|
|
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 "[email protected]"
|
|
if ! git diff --quiet; then
|
|
git commit -am "socialstreamninja: update to $(jq -r .version bucket/socialstreamninja.json)"
|
|
git push
|
|
fi |