Sync Submodules #38
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
| # This Action is dispatched by kaplayjs/kaplay on master push | |
| name: "Sync Submodules" | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| sync: | |
| permissions: write-all | |
| name: "Sync Submodules" | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| shell: bash | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: Git Submodule Update | |
| run: | | |
| git pull --recurse-submodules | |
| git submodule update --remote --recursive | |
| - name: Commit and Push Changes | |
| env: | |
| BOT_TOKEN: ${{ secrets.BOT_TOKEN }} | |
| run: | | |
| git config --global user.name "Bag Bot" | |
| git config --global user.email "[email protected]" | |
| git add . | |
| git commit -m "chore: bump repo" || echo "No changes to commit" | |
| git push https://x-access-token:[email protected]/${{ github.repository }}.git |