From 9e977cfd6eb79e6d8ba42f7aaa5f75909f9ab0a1 Mon Sep 17 00:00:00 2001 From: Wolfgang Thaller Date: Mon, 1 Aug 2022 10:29:52 +0200 Subject: [PATCH] Another attempt at skipping cachix upload without tokens --- azure-pipelines.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index a450c7bf69..d8080757f1 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -96,16 +96,18 @@ jobs: - publish: CompiledSamples artifact: Samples ($(TARGET)) - script: | + if [ -z "$[CACHIX_AUTH_TOKEN]" ]; then + echo "Token for cachix access not available, skipping." + exit + fi docker start nix -i <