Submodule Sync #379
This file contains 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: Submodule Sync | |
on: | |
schedule: | |
- cron: "15 */4 * * *" | |
workflow_dispatch: ~ | |
jobs: | |
submodule-sync: | |
name: Submodule update | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
token: ${{ secrets.GH_ACCESS_TOKEN }} | |
- name: Commit | |
run: | | |
git config user.email "[email protected]" | |
git config user.name "github-actions" | |
git commit -am "Auto updated submodule references" && git push || echo "No changes to commit" |