We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 759e98e commit 58501b8Copy full SHA for 58501b8
bump-version/action.yml
@@ -44,7 +44,11 @@ runs:
44
shell: bash -eux {0}
45
run: |
46
if [ ${{ inputs.push_commit }} == "true" ]; then
47
- git push origin
+ if git ls-remote --heads --exit-code origin "$(git symbolic-ref --short HEAD)" &>/dev/null; then
48
+ git push origin
49
+ else
50
+ git push --set-upstream origin "$(git symbolic-ref --short HEAD)"
51
+ fi
52
echo "Pushed version bump: ${{ inputs.version }}" >> $GITHUB_STEP_SUMMARY
53
else
54
echo "Created version bump (no push): ${{ inputs.version }}" >> $GITHUB_STEP_SUMMARY
0 commit comments