Skip to content

Commit 9c93bc8

Browse files
committed
default w/ head.sha
1 parent 3f4d45b commit 9c93bc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

actions/setup-environment/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ inputs:
1212
ref:
1313
description: 'The ref to checkout'
1414
required: false
15-
default: ''
15+
default: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || github.ref }}
1616
fetch-depth:
1717
description: 'The fetch depth'
1818
required: false

0 commit comments

Comments
 (0)