Skip to content

Commit

Permalink
fix: don't checkout target for strategy force
Browse files Browse the repository at this point in the history
Don't checkout the `target`-branch for strategy `force` as it might not exist and as the checkout is unnecessary.
  • Loading branch information
jojomatik authored Oct 10, 2022
1 parent 99e7f17 commit e1d4653
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ runs:
git config user.email ${{ inputs.git_committer_email }}
shell: bash
- name: Checkout ${{ inputs.target }}
if: inputs.strategy != 'force'
run: git checkout ${{ inputs.target }}
shell: bash
- name: Merge ${{ inputs.source }} into ${{ inputs.target }}
Expand Down

0 comments on commit e1d4653

Please sign in to comment.