File tree 2 files changed +17
-0
lines changed
2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 57
57
58
58
steps :
59
59
- uses : actions/checkout@v3
60
+ with :
61
+
62
+ # By default, the `pull_request` event has a `GITHUB_SHA` env variable
63
+ # set to the "last merge commit on the GITHUB_REF branch" (see
64
+ # https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request).
65
+ # But we want to check out the latest commit on the branch whether or
66
+ # not it is a merge commit, so this is how we do that.
67
+ ref : " ${{ github.event.pull_request.head.sha }}"
60
68
61
69
- run : git fetch origin master # check the master branch for benchmarking
62
70
Original file line number Diff line number Diff line change 23
23
steps :
24
24
# Need the repo checked out in order to read the file
25
25
- uses : actions/checkout@v3
26
+ with :
27
+
28
+ # By default, the `pull_request` event has a `GITHUB_SHA` env variable
29
+ # set to the "last merge commit on the GITHUB_REF branch" (see
30
+ # https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request).
31
+ # But we want to check out the latest commit on the branch whether or
32
+ # not it is a merge commit, so this is how we do that.
33
+ ref : " ${{ github.event.pull_request.head.sha }}"
34
+
26
35
- id : ghcs
27
36
run : echo "ghcs=$(cat ./.github/workflows/supported-ghc-versions.json)" >> $GITHUB_OUTPUT
28
37
- id : skip_check
You can’t perform that action at this time.
0 commit comments