Skip to content

Commit

Permalink
fix: dry_run should work when no branch
Browse files Browse the repository at this point in the history
  • Loading branch information
jpoehnelt authored Mar 19, 2020
1 parent 106379e commit bf20980
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actions/gapic/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ if [ $differs_from_master ]; then
[[ -n $(git ls-remote --heads origin ${BRANCH}) ]] && has_branch=1 || has_branch=0


if [[ !$has_branch || -n $(git diff "origin/${BRANCH}") && -z $INPUT_DRY_RUN ]]; then
if [[ ( !$has_branch || -n $(git diff "origin/${BRANCH}") ) && -z $INPUT_DRY_RUN ]]; then
git push -f -u origin $BRANCH

curl \
Expand Down

0 comments on commit bf20980

Please sign in to comment.