Skip to content

Commit

Permalink
Fix validation on releases
Browse files Browse the repository at this point in the history
  • Loading branch information
dloez committed Jul 9, 2023
1 parent 9bc19e6 commit 2383bb3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ jobs:
git fetch origin &> /dev/null
version=${{ steps.gather-version.outputs.version }}
if [[ -n "$(git tag -l v${version})" ]]; then
echo "A release '${version}' already exists." >&2
exit 1
echo "Project version '${version}' and tag 'v${version}' matches!!"
exit 0
else
echo "Tag 'v${version}' will be created"
echo "Project version '${version}' and tag 'v${version}' does not match!!"
exit 1
fi
build-lint:
uses: ./.github/workflows/build_lint.yml
Expand Down

0 comments on commit 2383bb3

Please sign in to comment.