Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Giehl <stefan@matomo.org>2021-02-26 12:04:17 +0300
committerGitHub <noreply@github.com>2021-02-26 12:04:17 +0300
commite7917019cdee9fe22b4f410c2886e3857663a62d (patch)
tree3485a8b477c830a63bc6288848f793f237396486 /.github
parent10c56b158ca481f786776b29c88f2455f9e821ad (diff)
improve submodule action
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/submodules.yml3
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 \