diff --git a/.github/workflows/update-submodule.yml b/.github/workflows/update-submodule.yml index a5e3ce2eee3..1a83bd57463 100644 --- a/.github/workflows/update-submodule.yml +++ b/.github/workflows/update-submodule.yml @@ -1,33 +1,33 @@ -name: (U) 🧰 Update Submodules - -on: - workflow_dispatch: - schedule: - - cron: "0 15 * * *" - -jobs: - update-submodules: - runs-on: ubuntu-latest - steps: - - name: Checkout Repository - uses: actions/checkout@v2 - with: - submodules: "recursive" - - - name: configure git - run: | - git config --global user.name "github-actions[bot]" - git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" - - - name: Update Submodules - run: | - git submodule update --remote - git add . - - if git diff-index --quiet HEAD --; then - echo "No submodule changes; exiting." - exit 0 - fi - - git commit -m "[MB bot] Update submodules" -a - git push +name: (U) 🧰 Update Submodules + +on: + workflow_dispatch: + schedule: + - cron: "0 15 * * *" + +jobs: + update-submodules: + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + with: + submodules: "recursive" + + - name: configure git + run: | + git config --global user.name "github-actions[bot]" + git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" + + - name: Update Submodules + run: | + git submodule update --remote + git add . + + if git diff-index --quiet HEAD --; then + echo "No submodule changes; exiting." + exit 0 + fi + + git commit -m "[MB bot] Update submodules" -a + git push