Auto Update #145082
This file contains hidden or 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 "action@github.com" | |
| git config --local user.name "GitHub Action" | |
| git add github-markdown.css | |
| git commit -m "Auto update" || true | |
| - name: Push back | |
| uses: ad-m/github-push-action@v0.6.0 | |
| 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 |