Update submodules #74
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: Update submodules | |
on: workflow_dispatch | |
jobs: | |
publish_job: | |
runs-on: ubuntu-latest | |
name: Pull and update submodules | |
steps: | |
- name: Debounce 10s | |
uses: zachary95/[email protected] | |
with: | |
wait: 10 | |
- name: Checkout contents repo | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.GH_PAT }} | |
submodules: recursive | |
- name: Pull & update submodules recursively | |
run: | | |
git submodule update --init --recursive | |
git submodule update --recursive --remote | |
- name: Commit | |
run: | | |
git config user.email "[email protected]" | |
git config user.name "GitHub Actions" | |
git add --all | |
git commit -m "chore: update submodules" || echo "No changes to commit" | |
git push |