Skip to content

Instantly share code, notes, and snippets.

@Supercip971
Last active September 6, 2023 17:11
Show Gist options
  • Save Supercip971/467846d7b12444275dbb4ac71cc192c4 to your computer and use it in GitHub Desktop.
Save Supercip971/467846d7b12444275dbb4ac71cc192c4 to your computer and use it in GitHub Desktop.
update all your submodule when you want with this github action !
name: update all submodules
on: workflow_dispatch
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
fetch-depth: 0
- name: Submodule update
run: |
git submodule init
git submodule update --remote --merge
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -m "update submodule" -a
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment