Skip to content

Commit 6716952

Browse files
committed
feat(setup-js): add ref option
1 parent 9b39e18 commit 6716952

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

setup-js/action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ inputs:
66
description: Whether to configure the token or SSH key with the local git config
77
default: false
88

9+
ref:
10+
description: The `ref` option of actions/checkout
11+
default: ""
12+
913
fetch-all:
1014
description: Whether to fetch all commits and submodules.
1115
default: false
@@ -29,6 +33,7 @@ runs:
2933
uses: actions/checkout@v6
3034
with:
3135
persist-credentials: ${{ inputs.persist-credentials }}
36+
ref: ${{ inputs.ref }}
3237
fetch-depth: "${{ inputs.fetch-all == 'true' && '0' || '1' }}"
3338
submodules: "${{ inputs.fetch-all == 'true' && 'recursive' || false }}"
3439

0 commit comments

Comments
 (0)