Update update-submodules.yml #1
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 Theos Submodules | |
on: | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
repository_dispatch: | |
types: [org_push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.UPDATE_SUBMODULES_TOKEN }} | |
- name: Update submodules | |
run: | | |
git config --global user.name "$GITHUB_ACTOR" | |
git config --global user.email "$GITHUB_ACTOR@users.noreply.github.com" | |
git submodule update --remote --init --recursive | |
git commit --all -m "[submodules] Update submodules to the latest commit" && git push || echo "No changes were made" |