Skip to content

Instantly share code, notes, and snippets.

@PJUllrich
Last active May 27, 2020 09:59
Show Gist options
  • Save PJUllrich/294de1dc99d260a9b3f3670a29783520 to your computer and use it in GitHub Desktop.
Save PJUllrich/294de1dc99d260a9b3f3670a29783520 to your computer and use it in GitHub Desktop.
name: Update data
on:
schedule:
- cron: "0 5 * * *"
jobs:
execute:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Update local files
run: python3 fetch_current_data.py
- name: Commit files
run: |
git config --local user.email "your@email.com"
git config --local user.name "GitHub Action"
git commit -m "Update data" -a
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment