Update Volta version #155
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: Update Volta version | |
| on: | |
| schedule: | |
| - cron: "30 5 1,15 * *" | |
| workflow_dispatch: | |
| jobs: | |
| update: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| token: ${{ secrets.GH_PAT }} | |
| - name: Run update.sh script | |
| run: ./update.sh | |
| - name: Commit files | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| if git add . && git diff --quiet && git diff --cached --quiet; then | |
| echo "No changes detected" | |
| exit 0 | |
| fi | |
| git commit -m "Update Volta to latest version" | |
| git push |