fix: update latest tag action to use set-output (#12706)

This commit is contained in:
Elizabeth Thompson
2021-01-24 16:40:52 -08:00
committed by GitHub
parent 73586d8760
commit 80deb4ed7c
2 changed files with 4 additions and 9 deletions

View File

@@ -20,14 +20,9 @@ jobs:
run: | run: |
source ./scripts/tag_latest_release.sh $(echo ${{ github.event.release.tag_name }}) --dry-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 - name: Run latest-tag
uses: ./.github/actions/latest-tag uses: ./.github/actions/latest-tag
if: (! env.skip_tag ) if: (! ${{ steps.latest-tag.outputs.SKIP_TAG }} )
with: with:
description: Superset latest release description: Superset latest release
tag-name: latest tag-name: latest

View File

@@ -25,7 +25,7 @@ run_git_tag () {
exit 0 exit 0
} }
SKIP_TAG=false echo "::set-output name=SKIP_TAG::false"
DRY_RUN=false DRY_RUN=false
# get params passed in with script when it was run # 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]+$ ]] if ! [[ ${GITHUB_TAG_NAME} =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]
then then
echo "This tag ${GITHUB_TAG_NAME} is not a valid release version. Not tagging." 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 exit 0
fi fi
@@ -125,4 +125,4 @@ done
echo "This release tag ${GITHUB_TAG_NAME} is not the latest. Not tagging." 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 # 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"