add buttons workflow
This commit is contained in:
parent
6c59767fcf
commit
01b36b508e
3 changed files with 89 additions and 1 deletions
31
.forgejo/workflows/buttons.yml
Normal file
31
.forgejo/workflows/buttons.yml
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
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/sneexy/pages/.forgejo/buttons.sh
|
||||
bash -c "/workspace/sneexy/pages/.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
|
||||
Loading…
Add table
Add a link
Reference in a new issue