You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ta...@apache.org on 2021/01/25 00:41:33 UTC

[superset] branch master updated: fix: update latest tag action to use set-output (#12706)

This is an automated email from the ASF dual-hosted git repository.

tai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 80deb4e  fix: update latest tag action to use set-output (#12706)
80deb4e is described below

commit 80deb4ed7ca7142932365aa4a907bb09a6fef087
Author: Elizabeth Thompson <es...@gmail.com>
AuthorDate: Sun Jan 24 16:40:52 2021 -0800

    fix: update latest tag action to use set-output (#12706)
---
 .github/workflows/latest-release-tag.yml | 7 +------
 scripts/tag_latest_release.sh            | 6 +++---
 2 files changed, 4 insertions(+), 9 deletions(-)

diff --git a/.github/workflows/latest-release-tag.yml b/.github/workflows/latest-release-tag.yml
index 7b56089..ae3703a 100644
--- a/.github/workflows/latest-release-tag.yml
+++ b/.github/workflows/latest-release-tag.yml
@@ -20,14 +20,9 @@ jobs:
       run: |
         source ./scripts/tag_latest_release.sh $(echo ${{ github.event.release.tag_name }}) --dry-run
 
-        if ${SKIP_TAG}
-        then
-          echo "::set-env name=skip_tag::true"
-        fi
-
     - name: Run latest-tag
       uses: ./.github/actions/latest-tag
-      if: (! env.skip_tag )
+      if: (! ${{ steps.latest-tag.outputs.SKIP_TAG }} )
       with:
         description: Superset latest release
         tag-name: latest
diff --git a/scripts/tag_latest_release.sh b/scripts/tag_latest_release.sh
index 0e31136..a5d50ea 100755
--- a/scripts/tag_latest_release.sh
+++ b/scripts/tag_latest_release.sh
@@ -25,7 +25,7 @@ run_git_tag () {
   exit 0
 }
 
-SKIP_TAG=false
+echo "::set-output name=SKIP_TAG::false"
 DRY_RUN=false
 
 # get params passed in with script when it was run
@@ -62,7 +62,7 @@ fi
 if ! [[ ${GITHUB_TAG_NAME} =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]
 then
   echo "This tag ${GITHUB_TAG_NAME} is not a valid release version. Not tagging."
-  SKIP_TAG=true
+  echo "::set-output name=SKIP_TAG::true"
   exit 0
 fi
 
@@ -125,4 +125,4 @@ done
 
 echo "This release tag ${GITHUB_TAG_NAME} is not the latest. Not tagging."
 # if you've gotten this far, then we don't want to run any tags in the next step
-SKIP_TAG=true
+echo "::set-output name=SKIP_TAG::true"