2020-01-20 05:02:52 +06:00
|
|
|
name: Auto-Update
|
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
2020-01-20 05:27:17 +06:00
|
|
|
- cron: "0 0 * * 1"
|
2020-01-20 05:02:52 +06:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Auto-Update
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2020-01-20 05:15:27 +06:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Create local changes
|
|
|
|
run: |
|
|
|
|
./update.sh
|
|
|
|
- name: Commit files
|
|
|
|
run: |
|
|
|
|
git config --local user.email "hashhar_dev@outlook.com"
|
|
|
|
git config --local user.name "Ashhar Hasan"
|
2020-01-20 06:14:01 +06:00
|
|
|
git diff --quiet && git diff --staged --quiet || git commit -m "Synced on $(date -I)" -a
|
2020-01-20 05:15:27 +06:00
|
|
|
- name: Push changes
|
|
|
|
run: |
|
|
|
|
git push
|