Skip to content

Commit ca03ade

Browse files
committed
consistent env variables
1 parent 10d7298 commit ca03ade

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,11 @@ jobs:
7373
run: |
7474
if [[ "${GITHUB_EVENT_NAME}" == "pull_request" ]]; then
7575
# diff all files in the PR
76-
git fetch origin ${{ github.base_ref }}
77-
BASE_SHA=$(git merge-base HEAD origin/${{ github.base_ref }})
76+
git fetch origin $GITHUB_BASE_REF
77+
BASE_SHA=$(git merge-base HEAD origin/$GITHUB_BASE_REF)
7878
else
7979
# diff only the latest commit
80-
BASE_SHA=${{ github.event.before }}
80+
BASE_SHA=$GITHUB_EVENT_BEFORE
8181
fi
8282
echo "BASE_SHA=$BASE_SHA" >> $GITHUB_ENV
8383
echo "Using BASE_SHA=$BASE_SHA"

0 commit comments

Comments
 (0)