You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
539 B
YAML

name: Auto-Update
on:
schedule:
- cron: "0 0 * * 1"
jobs:
build:
name: Auto-Update
runs-on: ubuntu-latest
steps:
- 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"
git diff --quiet && git diff --staged --quiet || git commit -m "Synced on $(date -I)" -a
- name: Push changes
run: |
git push