From 90a63b52e5f6c7ddf9e68035ade79d00d5e58b00 Mon Sep 17 00:00:00 2001 From: WenheLI Date: Thu, 17 Dec 2020 23:01:16 -0600 Subject: [PATCH] actions: fix set-env usage (#671) --- .github/workflows/release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6e6e0b011..dc0302e56 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,7 +24,7 @@ jobs: - name: Get release version id: get_version - run: echo ::set-env name=RELEASE_VERSION::$(echo ${GITHUB_REF:11}) + run: echo "RELEASE_VERSION=$(echo ${GITHUB_REF:11}" >> $GITHUB_ENV - name: Publish check run: | @@ -41,11 +41,11 @@ jobs: [ $(check_pkg pipcook-cli $ver) == $ver ] && [ $(check_pkg daemon $ver) == $ver ] then - echo ::set-env name=NPM_PUBLISHED::true + echo "NPM_PUBLISHED=true" >> $GITHUB_ENV fi if [ $(check_image $ver) == $ver ]; then - echo ::set-env name=DOCKER_PUBLISHED::true + echo "DOCKER_PUBLISHED=true" >> $GITHUB_ENV fi - name: Publish npm packages