Play with actions
This commit is contained in:
parent
2ed8856fc8
commit
d5b6d1f391
|
@ -2,12 +2,22 @@ name: Auto-Update
|
||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 0 * * 1"
|
- cron: "*/5 * * * *"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Auto-Update
|
name: Auto-Update
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: update.sh
|
- uses: actions/checkout@v2
|
||||||
run: ./update.sh
|
- 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"
|
||||||
|
git commit -m "Synced on $(date -I)" -a
|
||||||
|
- name: Push changes
|
||||||
|
run: |
|
||||||
|
git push
|
||||||
|
|
Loading…
Reference in New Issue