Auto Update CI #295
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 CI | |
| on: | |
| schedule: | |
| - cron: "0 0 * * SUN" | |
| push: | |
| branches: | |
| - master | |
| paths: | |
| - 'list.txt' | |
| - 'list2md.cr' | |
| - 'README.ecr' | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: crystallang/crystal:nightly-alpine | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| - name: Run Crystal Script | |
| run: crystal list2md.cr | |
| - name: Commit & Push | |
| env: | |
| USER: github-actions[bot] | |
| EMAIL: github-actions[bot]@users.noreply.github.com | |
| run: | | |
| git config --global --add safe.directory /__w/crystal-web-framework-stars/crystal-web-framework-stars | |
| git status | |
| git remote -v | |
| git config user.email $EMAIL | |
| git config user.name $USER | |
| git checkout master | |
| git add README.md list.json | |
| git commit -m "Auto update" | |
| git push | |