From a9e12e060cf47d170d61c28514158f7a9bb7ec1f Mon Sep 17 00:00:00 2001 From: Zach Bloomquist Date: Mon, 21 Feb 2022 12:02:15 -0500 Subject: [PATCH] chore: fix "cannot find module" in clone-repo-and-checkout-release-branch --- circle.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/circle.yml b/circle.yml index 2edd9135a6af..0e41c0ed3394 100644 --- a/circle.yml +++ b/circle.yml @@ -29,7 +29,7 @@ mainBuildFilters: &mainBuildFilters only: - develop - 10.0-release - - fix-darwin-win32-node-modules-install + - fix-next-version-in-test-repos # usually we don't build Mac app - it takes a long time # but sometimes we want to really confirm we are doing the right thing @@ -38,7 +38,7 @@ macWorkflowFilters: &mac-workflow-filters when: or: - equal: [ develop, << pipeline.git.branch >> ] - - equal: [ fix-darwin-win32-node-modules-install, << pipeline.git.branch >> ] + - equal: [ fix-next-version-in-test-repos, << pipeline.git.branch >> ] - matches: pattern: "-release$" value: << pipeline.git.branch >> @@ -48,7 +48,7 @@ windowsWorkflowFilters: &windows-workflow-filters or: - equal: [ master, << pipeline.git.branch >> ] - equal: [ develop, << pipeline.git.branch >> ] - - equal: [ fix-darwin-win32-node-modules-install, << pipeline.git.branch >> ] + - equal: [ fix-next-version-in-test-repos, << pipeline.git.branch >> ] - matches: pattern: "-release$" value: << pipeline.git.branch >> @@ -589,7 +589,8 @@ commands: name: "Cloning test project: <>" command: | git clone --depth 1 --no-single-branch https://github.com/cypress-io/<>.git /tmp/<> - cd /tmp/<> && (git checkout $(node ./scripts/get-next-version.js) || true) + NEXT_VERSION=$(node ./scripts/get-next-version.js) + cd /tmp/<> && (git checkout $NEXT_VERSION || true) test-binary-against-rwa: description: | @@ -1626,7 +1627,7 @@ jobs: - run: name: Check current branch to persist artifacts command: | - if [[ "$CIRCLE_BRANCH" != "develop" && "$CIRCLE_BRANCH" != "fix-darwin-win32-node-modules-install" ]]; then + if [[ "$CIRCLE_BRANCH" != "develop" && "$CIRCLE_BRANCH" != "fix-next-version-in-test-repos" ]]; then echo "Not uploading artifacts or posting install comment for this branch." circleci-agent step halt fi