chore(misc): uses the nx-cloud-workflows templated step for git checkout (#19599)

This commit is contained in:
Simon Critchley 2023-10-13 14:42:41 +01:00 committed by GitHub
parent aaa133a13f
commit 6857155822
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: |