File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -26,13 +26,15 @@ jobs:
26
26
git config user.name "Release bot"
27
27
git config user.email "[email protected] "
28
28
git config pull.rebase true
29
- git config remote.origin.url >&- || git remote add origin https://github.com/$ origin # Git Detached mode (release notes) doesn't have origin
30
- git pull origin $ BRANCH
29
+ git config remote.origin.url >&- || git remote add origin https://github.com/"${ origin}" # Git Detached mode (release notes) doesn't have origin
30
+ git pull origin "${ BRANCH}"
31
31
- name : " Generate latest changelog"
32
32
run : make changelog
33
33
- name : Update Changelog in trunk
34
34
run : |
35
+ HAS_CHANGE=$(git status --porcelain)
36
+ test -z "${HAS_CHANGE}" && echo "Nothing to update" && exit 0
35
37
git add CHANGELOG.md
36
38
git commit -m "update changelog with latest changes"
37
- git pull origin $ BRANCH # prevents concurrent branch update failing push
38
- git push origin HEAD:refs/heads/$ BRANCH
39
+ git pull origin "${ BRANCH}" # prevents concurrent branch update failing push
40
+ git push origin HEAD:refs/heads/"${ BRANCH}"
You can’t perform that action at this time.
0 commit comments