2020-06-30 02:12:41 +02:00
|
|
|
name: update.sh
|
|
|
|
|
|
|
|
on:
|
2020-08-25 17:33:10 +02:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
schedule:
|
|
|
|
- cron: '15 0 * * *'
|
2022-09-07 16:19:40 +02:00
|
|
|
workflow_dispatch:
|
2020-06-30 02:12:41 +02:00
|
|
|
|
|
|
|
jobs:
|
2020-08-25 17:33:10 +02:00
|
|
|
run_update_sh:
|
|
|
|
name: Run update.sh script
|
2020-06-30 02:12:41 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2020-08-25 17:33:10 +02:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Run update.sh script
|
|
|
|
run: ./update.sh
|
|
|
|
- name: Commit files
|
|
|
|
run: |
|
|
|
|
git config --local user.email "workflow@github.com"
|
|
|
|
git config --local user.name "GitHub Workflow"
|
2020-10-03 18:32:14 +02:00
|
|
|
git add -A
|
2020-08-28 15:43:33 +02:00
|
|
|
git commit -m "Runs update.sh" || echo "Nothing to update"
|
2020-08-25 17:33:10 +02:00
|
|
|
- name: Push changes
|
|
|
|
uses: ad-m/github-push-action@master
|
|
|
|
with:
|
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
force: true
|