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: Send submodule updates to parent repo | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| update: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| repository: Super-Botman/Super-Botman.github.io | |
| token: ${{ secrets.PRIVATE_TOKEN_GITHUB }} | |
| submodules: recursive | |
| - name: Update submodules | |
| id: update | |
| run: git submodule update --remote --recursive | |
| - name: Add and commit files | |
| run: | | |
| git add . | |
| git config --local user.email "[email protected]" | |
| git config --local user.name "GitHub Action" | |
| git commit -m "Update submodules at $(date "+DATE: %Y-%m-%d TIME: %H:%M:%S")" | |
| - name: Push changes | |
| uses: ad-m/github-push-action@master | |
| with: | |
| github_token: ${{ secrets.PRIVATE_TOKEN_GITHUB }} | |
| repository: Super-Botman/Super-Botman.github.io | |
| branch: main |