chore(misc): uses the nx-cloud-workflows templated step for git checkout (#19599)
This commit is contained in:
parent
aaa133a13f
commit
6857155822
@ -16,11 +16,7 @@ env:
|
|||||||
NX_CLOUD_ACCESS_TOKEN: '{{secrets.NX_CLOUD_ACCESS_TOKEN}}'
|
NX_CLOUD_ACCESS_TOKEN: '{{secrets.NX_CLOUD_ACCESS_TOKEN}}'
|
||||||
steps:
|
steps:
|
||||||
- name: Git Clone
|
- name: Git Clone
|
||||||
script: |
|
uses: 'nrwl/nx-cloud-workflows/v1.1/workflow-steps/checkout/main.yaml'
|
||||||
git init .
|
|
||||||
git remote add origin $GIT_REPOSITORY_URL
|
|
||||||
git fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +{{nxCommitSha}}:{{nxCommitRef}}
|
|
||||||
git checkout --progress --force -B {{nxBranch}} {{nxCommitRef}}
|
|
||||||
|
|
||||||
- name: Restore cache
|
- name: Restore cache
|
||||||
script: |
|
script: |
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user