File tree 1 file changed +3
-6
lines changed
1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 33
33
git fetch --all
34
34
git branch -r | grep -v '\->' | grep -v 'origin/HEAD' | sed 's/origin\///' | xargs -n 1 git branch -D || true
35
35
36
- - name : Update all submodules
36
+ - name : Create or update submodules branch
37
37
id : update_submodules
38
38
run : |
39
+ git fetch origin
40
+ git checkout -B update-submodules-branch origin/update-submodules-branch || git checkout -b update-submodules-branch
39
41
git submodule update --init --remote
40
42
if [ -n "$(git status --porcelain)" ]; then
41
43
echo "Submodule updates found"
45
47
echo "::set-output name=needs_update::false"
46
48
fi
47
49
48
- - name : Create a new branch for changes
49
- if : steps.update_submodules.outputs.needs_update == 'true'
50
- run : |
51
- git checkout -b update-submodules-branch
52
-
53
50
- name : Commit and push changes
54
51
if : steps.update_submodules.outputs.needs_update == 'true'
55
52
run : |
You can’t perform that action at this time.
0 commit comments