Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

Commit

Permalink
fix: tag detection
Browse files Browse the repository at this point in the history
  • Loading branch information
charlie-haley authored Feb 15, 2023
1 parent 8365245 commit f9aa773
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches:
- master

env:
tag_prefix: v

jobs:
test:
uses: "traefik/hub-helm-chart/.github/workflows/test.yml@master"
Expand Down Expand Up @@ -38,7 +41,7 @@ jobs:
id: tag_exists
run: |
TAG_EXISTS=true
if ! [ $(git tag -l "${{ steps.chart_version.outputs.CHART_VERSION }}") ]; then
if ! [ $(git tag -l "${{ env.tag_prefix }}${{ steps.chart_version.outputs.CHART_VERSION }}") ]; then
TAG_EXISTS=false
fi
echo TAG_EXISTS=$TAG_EXISTS >> $GITHUB_OUTPUT
Expand All @@ -49,6 +52,7 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
custom_tag: ${{ steps.chart_version.outputs.CHART_VERSION }}
tag_prefix: ${{ env.tag_prefix }}
if: steps.tag_exists.outputs.TAG_EXISTS == 'false'

- name: Create release
Expand Down

0 comments on commit f9aa773

Please sign in to comment.