Format Code for v2 #260
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: Format Code for v2 | |
| on: | |
| schedule: | |
| - cron: '0 5 * * *' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| ref: v2 | |
| fetch-depth: 0 | |
| - name: Set name | |
| run: git config --global user.name "Robbot" | |
| - name: Set email | |
| run: git config --global user.email "[email protected]" | |
| - name: Format the code | |
| run: node ./.github/format.js | |
| - name: Add | |
| run: git add . | |
| - name: Commit | |
| id: commit | |
| continue-on-error: true | |
| run: git commit -m "Format C" | |
| - name: Push | |
| if: steps.commit.outcome == 'success' | |
| continue-on-error: true | |
| run: git push |