Skip to content

Commit 021c957

Browse files
author
Rafid Bin Mostofa
committed
ci: use github.event.pull_request.base.sha
1 parent 7c3603c commit 021c957

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/removed-slices.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ jobs:
4141
- name: "Check for removed slices"
4242
run: |
4343
ln -s "${{ env.files_main }}/.github/scripts/removed-slices/removed-slices" .
44-
# For pull request events, use github.base_ref as the old git ref.
44+
# For pull request events, use github.event.pull_request.base.sha as
45+
# the old git ref.
4546
# For push events, the github.event.before value contains the SHA of
4647
# the most recent commit on ref before the push.
47-
./removed-slices "${{ github.base_ref || github.event.before }}"
48+
./removed-slices "${{ github.event.pull_request.base.sha || github.event.before }}"

0 commit comments

Comments
 (0)