From e75e4b4b5f0fd9483f241d23abe60c8c517fc4b7 Mon Sep 17 00:00:00 2001 From: est31 Date: Mon, 29 Mar 2021 10:38:04 +0200 Subject: [PATCH] Replace set-env with new method set-env has been deprecated --- .github/workflows/cpal.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cpal.yml b/.github/workflows/cpal.yml index 429034e..2a3f181 100644 --- a/.github/workflows/cpal.yml +++ b/.github/workflows/cpal.yml @@ -63,11 +63,12 @@ jobs: continue-on-error: true run: | CPAL_TMP=$(mktemp /tmp/cpalXXX.txt) || echo "::error::mktemp error" - echo "::set-env name=CPAL_TMP::$CPAL_TMP" + echo "CPAL_TMP=$CPAL_TMP" >> $GITHUB_ENV cargo publish --token $CRATESIO_TOKEN 2> $CPAL_TMP - name: Check if cpal is already published run: | empty=0 + CPAL_TMP="${{ env.CPAL_TMP }}" grep -q '[^[:space:]]' < $CPAL_TMP || empty=1 [ $empty -eq 0 ] && cat $CPAL_TMP [ $empty -eq 1 ] || grep -q "is already uploaded" < $CPAL_TMP