Update actions/node-ci/action.yml
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
7314df1f3e
commit
cae82129e3
@ -33,20 +33,13 @@ inputs:
|
||||
runs:
|
||||
using: 'composite'
|
||||
steps:
|
||||
- name: Checkout (custom ref)
|
||||
if: inputs.checkout-ref != ''
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
path: ${{ inputs.checkout-path }}
|
||||
# When checkout-ref is empty, actions/checkout uses the default github.ref
|
||||
ref: ${{ inputs.checkout-ref }}
|
||||
submodules: ${{ inputs.checkout-submodules }}
|
||||
- name: Checkout (default ref)
|
||||
if: inputs.checkout-ref == ''
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
path: ${{ inputs.checkout-path }}
|
||||
# When checkout-ref is empty, rely on the default github.ref
|
||||
submodules: ${{ inputs.checkout-submodules }}
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user