Skip to content

Commit

Permalink
Add force flag to git checkout to prevent issues with line endings
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackenmen committed Mar 28, 2023
1 parent 47a169c commit b0759db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ runs:
if: github.event.pull_request.state == 'open'
run: |-
git fetch origin +refs/pull/${{ github.event.pull_request.number }}/merge
git checkout FETCH_HEAD
git checkout -f FETCH_HEAD
shell: bash

- name: Checkout the merge branch for the closed pull request.
if: github.event.pull_request.state != 'open'
run: |-
git fetch origin ${{ github.event.pull_request.merge_commit_sha }}
git checkout FETCH_HEAD
git checkout -f FETCH_HEAD
shell: bash

- name: Setup Python for the action.
Expand Down

0 comments on commit b0759db

Please sign in to comment.