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 * * *'
|
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"
|
|
|
|
git add ./*
|
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
|