Skip to content

Commit

Permalink
fix: only checkout target for strategy merge
Browse files Browse the repository at this point in the history
Only checkout the `target`-branch for strategy `merge` as it might not exist for the other strategies and as the checkout is unnecessary.
  • Loading branch information
jojomatik committed Oct 11, 2022
1 parent d7daf16 commit 59149dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ runs:
git config user.email ${{ inputs.git_committer_email }}
shell: bash
- name: Checkout ${{ inputs.target }}
if: inputs.strategy != 'force'
if: inputs.strategy == 'merge'
run: git checkout ${{ inputs.target }}
shell: bash
- name: Merge ${{ inputs.source }} into ${{ inputs.target }}
Expand Down

0 comments on commit 59149dd

Please sign in to comment.