site/.forgejo/workflows/buttons.yml

31 lines
716 B
YAML
Raw Normal View History

2024-10-08 21:28:40 -05:00
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: |
2025-10-27 18:21:34 -05:00
chmod +x ${GITHUB_WORKSPACE}/.forgejo/buttons.sh
bash -c "${GITHUB_WORKSPACE}/.forgejo/buttons.sh"
2024-10-08 21:28:40 -05:00
- 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)"
2025-10-27 18:21:34 -05:00
git push