diff options
Diffstat (limited to '.github/workflows/submodules.yml')
-rw-r--r-- | .github/workflows/submodules.yml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/.github/workflows/submodules.yml b/.github/workflows/submodules.yml index d3125a90ae..ef358d5c99 100644 --- a/.github/workflows/submodules.yml +++ b/.github/workflows/submodules.yml @@ -48,6 +48,7 @@ jobs: git submodule | grep -oE '^\+[0-9a-f]+ ([A-z\/\-]+)' | cut -d' ' -f 2 | xargs -r git add IFS=$'\n' changes=( $(git diff --staged --numstat | grep -oE '[A-z0-9\/\-]{2,}' || true ) ) + unset IFS # abort here if no change available if [[ ${#changes[@]} -eq 0 ]] @@ -69,6 +70,8 @@ jobs: run: | git commit -m "updates all submodules" git push --set-upstream origin submodules + shell: bash + if: steps.changes.outputs.message - name: Create PR run: | curl \ |