Auto Update #112529
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Auto Update | |
on: | |
schedule: | |
- cron: '* * * * *' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Generate | |
run: ./generate.sh | |
- name: Commit files | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git add github-markdown.css | |
git commit -m "Auto update" || true | |
- name: Push back | |
uses: ad-m/[email protected] | |
with: | |
# Token for the repo. Can be passed in using ${{ secrets.GITHUB_TOKEN }} | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
# Destination branch to push changes | |
branch: master | |
# Determines if force push is used | |
force: false |