File tree 1 file changed +6
-11
lines changed
1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -46,24 +46,19 @@ jobs:
46
46
echo "::set-output name=needs_update::false"
47
47
fi
48
48
49
- - name : Create new branch and commit changes
49
+ - name : Create a new branch for changes
50
50
if : steps.update_submodules.outputs.needs_update == 'true'
51
51
run : |
52
52
git checkout -b update-submodules-branch
53
- git add .
54
- git commit -m "Update submodules to latest commits"
55
53
56
- - name : Pull latest changes from remote
54
+ - name : Commit and push changes
57
55
if : steps.update_submodules.outputs.needs_update == 'true'
58
56
run : |
59
- git pull --rebase origin update-submodules-branch || true
60
-
61
- - name : Push changes
62
- if : steps.update_submodules.outputs.needs_update == 'true'
63
- run : |
64
- git push origin update-submodules-branch
57
+ git add .
58
+ git commit -m "Update submodules to latest commits"
59
+ git push origin update-submodules-branch --force
65
60
66
- - name : Create Pull Request
61
+ - name : Create or update Pull Request
67
62
if : steps.update_submodules.outputs.needs_update == 'true'
68
63
uses : peter-evans/create-pull-request@v5
69
64
with :
You can’t perform that action at this time.
0 commit comments