Skip to content

Commit

Permalink
fix: include remote in push commands
Browse files Browse the repository at this point in the history
Include remote in `push` commands, as the command fails without a specified remote.
  • Loading branch information
jojomatik committed Mar 7, 2022
1 parent 51249ce commit fb0e0b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ runs:
shell: bash
- name: Push ${{ inputs.source }} to ${{ inputs.target }}
if: inputs.strategy == 'force'
run: git push --force ${{ inputs.source }}:${{ inputs.target }}
run: git push --force origin ${{ inputs.source }}:${{ inputs.target }}
shell: bash
- name: Push ${{ inputs.source }} to ${{ inputs.target }}
if: inputs.strategy == 'fail'
run: git push ${{ inputs.source }}:${{ inputs.target }}
run: git push origin ${{ inputs.source }}:${{ inputs.target }}
shell: bash

branding:
Expand Down

0 comments on commit fb0e0b8

Please sign in to comment.