Skip to content

Commit

Permalink
[CI] Fix release workflow warnings. (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamazeem authored Jan 24, 2023
1 parent e3af350 commit 1b98a35
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,15 @@ jobs:
ARTIFACT_RETENTION_DAYS: 5

steps:
- name: Get tag
uses: dawidd6/action-get-tag@v1
if: startsWith(github.ref, 'refs/tags/v')
id: tag
with:
strip_v: true

- name: Set TAG env var
- name: Get tag if tagged/released and set TAG env var
if: startsWith(github.ref, 'refs/tags/v')
shell: bash
run: |
TAG=${{ steps.tag.outputs.tag }}
TAG=$(echo $GITHUB_REF | cut -d '/' -f3)
echo "TAG: $TAG"
if [[ $TAG == "v"* ]]; then
TAG="${TAG:1}"
fi
echo "TAG: $TAG"
echo "TAG=$TAG" >> $GITHUB_ENV
Expand Down

0 comments on commit 1b98a35

Please sign in to comment.