From 6857155822105a3c6a7cedf0b67c76ff4df3d535 Mon Sep 17 00:00:00 2001 From: Simon Critchley Date: Fri, 13 Oct 2023 14:42:41 +0100 Subject: [PATCH] chore(misc): uses the nx-cloud-workflows templated step for git checkout (#19599) --- .nx/workflows/agents.yaml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.nx/workflows/agents.yaml b/.nx/workflows/agents.yaml index 5b61ccabd52f7..fd9e2d3c02fa6 100644 --- a/.nx/workflows/agents.yaml +++ b/.nx/workflows/agents.yaml @@ -16,11 +16,7 @@ env: NX_CLOUD_ACCESS_TOKEN: '{{secrets.NX_CLOUD_ACCESS_TOKEN}}' steps: - name: Git Clone - script: | - 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}} + uses: 'nrwl/nx-cloud-workflows/v1.1/workflow-steps/checkout/main.yaml' - name: Restore cache script: |