We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 448bba7 commit 21682dcCopy full SHA for 21682dc
action.yaml
@@ -12,12 +12,20 @@ runs:
12
- name: Checkout the base branch for the pull request.
13
uses: actions/checkout@v3
14
15
- - name: Checkout the merge branch for the pull request.
+ - name: Checkout the merge branch for the open pull request.
16
+ if: github.event.pull_request.state == 'open'
17
run: |-
18
git fetch origin +refs/pull/${{ github.event.pull_request.number }}/merge
19
git checkout FETCH_HEAD
20
shell: bash
21
22
+ - name: Checkout the merge branch for the closed pull request.
23
+ if: github.event.pull_request.state != 'open'
24
+ run: |-
25
+ git fetch origin ${{ github.event.pull_request.merge_commit_sha }}
26
+ git checkout FETCH_HEAD
27
+ shell: bash
28
+
29
- name: Setup Python for the action.
30
id: python-for-action
31
uses: actions/setup-python@v4
0 commit comments