site/.forgejo/workflows/buttons.yml
Ruben 2bad1e6896
All checks were successful
/ build (push) Successful in 29s
update workflow
2025-05-23 22:13:53 -05:00

31 lines
739 B
YAML

on:
push:
schedule:
- cron: '0 8 * * 6'
jobs:
build:
runs-on: docker
steps:
- uses: actions/checkout@v4
with:
ref: 'main'
- name: git setup
run: |
git config --local user.name "protogen"
git config --local user.email "proot@toasters.com"
- name: download buttons
run: |
chmod +x /workspace/synth.download/site/.forgejo/buttons.sh
bash -c "/workspace/synth.download/site/.forgejo/buttons.sh"
- name: push updated buttons
id: github-push
run: |
git config pull.rebase true
git add .
git diff-index --quiet HEAD || git commit -m "beep~! (updated buttons)"
git push