2020-08-18 22:38:18 +02:00
|
|
|
name: update.sh
|
|
|
|
|
|
|
|
on:
|
2020-08-30 22:26:18 +02:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- stable
|
|
|
|
schedule:
|
|
|
|
- cron: '15 0 * * *'
|
2020-08-18 22:38:18 +02:00
|
|
|
|
|
|
|
jobs:
|
2020-08-30 22:26:18 +02:00
|
|
|
run_update_sh:
|
|
|
|
name: Run update.sh script
|
2020-08-18 22:38:18 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2020-08-30 22:26:18 +02:00
|
|
|
- name: Run update.sh script
|
|
|
|
run: ./update.sh
|
|
|
|
- name: Commit files
|
2020-08-18 22:38:18 +02:00
|
|
|
run: |
|
2020-08-30 22:26:18 +02:00
|
|
|
git config --local user.email "workflow@github.com"
|
|
|
|
git config --local user.name "GitHub Workflow"
|
|
|
|
git add ./*
|
|
|
|
git commit -m "Runs update.sh" || echo "Nothing to update"
|
|
|
|
- name: Push changes
|
|
|
|
uses: ad-m/github-push-action@master
|
|
|
|
with:
|
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
force: true
|
2020-09-07 09:17:09 +02:00
|
|
|
branch: 'stable'
|