Skip to content

Commit 3d0d482

Browse files
committed
build: consistently use correct event name
1 parent 75e000c commit 3d0d482

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/run_tests_coverage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ jobs:
178178
if [ -z "$table" ]; then
179179
report="## Coverage Report\n\nNo coverage information available."
180180
else
181-
if [ "${{ github.event_name }}" == "pull_request" ]; then
181+
if [ "${{ github.event_name }}" == "pull_request_target" ]; then
182182
compare_url="https://github.com/stdlib-js/stdlib/compare/${{ github.event.pull_request.base.sha }}...${{ github.event.pull_request.head.sha }}"
183183
compare_txt="The above coverage report was generated for the [changes in this PR]($compare_url)."
184184
elif [ "${{ github.event_name }}" == "push" ]; then
@@ -262,7 +262,7 @@ jobs:
262262
run: |
263263
cd ./www-test-code-coverage
264264
265-
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
265+
if [[ "${{ github.event_name }}" == "pull_request_target" ]]; then
266266
BRANCH_NAME="pr-${{ github.event.pull_request.number }}"
267267
git fetch origin $BRANCH_NAME || true
268268
git checkout $BRANCH_NAME || git checkout -b $BRANCH_NAME

0 commit comments

Comments
 (0)