From c561cac4a8df8b48ef50b1ac1a5034d31b1d5df1 Mon Sep 17 00:00:00 2001 From: Gregory Haddow <93638800+ankorstore-haddowg@users.noreply.github.com> Date: Thu, 30 Mar 2023 14:08:49 +0100 Subject: [PATCH] fix(cancel-redundant-workflows): create tmp dir (#30) --- src/scripts/cancel-redundant-workflows.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/scripts/cancel-redundant-workflows.sh b/src/scripts/cancel-redundant-workflows.sh index aae4bec..ab6d6bd 100755 --- a/src/scripts/cancel-redundant-workflows.sh +++ b/src/scripts/cancel-redundant-workflows.sh @@ -10,6 +10,8 @@ if [ -z "$CIRCLE_TOKEN" ]; then exit 1; fi +mkdir -p /tmp/aks + # Get the name of the workflow and the related pipeline number CURRENT_WORKFLOW_URL="https://circleci.com/api/v2/workflow/${CIRCLE_WORKFLOW_ID}?circle-token=$CIRCLE_TOKEN" curl -f -s --retry 3 --retry-all-errors "$CURRENT_WORKFLOW_URL" > /tmp/aks/current_wf.json