diff --git a/.github/workflows/update_submodule.yml b/.github/workflows/update_submodule.yml index 6ed5d33..81bbcd7 100644 --- a/.github/workflows/update_submodule.yml +++ b/.github/workflows/update_submodule.yml @@ -27,7 +27,12 @@ jobs: - name: Update submodule run: git submodule update --init --recursive --remote -f + - name: Check if there are changes + id: check_changes + run: echo ::set-output name=changes::$(git status --porcelain) + - name: Commit changes + if: ${{ steps.check_changes.outputs.changes != '' }} run: | git add . git commit -m "Update submodule to latest commit"