Skip to content

Update submodule URLs to use secret token for authentication #7

Update submodule URLs to use secret token for authentication

Update submodule URLs to use secret token for authentication #7

name: Update Submodules
on:
push:
branches:
- main
jobs:
update-submodules:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository with Submodules
uses: actions/checkout@v3
with:
token: ${{ secrets.PAT_TOKEN }}
submodules: recursive
- name: Update Submodules to Latest Commit
run: |
git submodule foreach 'git pull origin $(git rev-parse --abbrev-ref HEAD)'
git add .
git commit -m "Update submodule references" || echo "No changes to commit"
git push