Skip to content

Commit

Permalink
Merge pull request #147 from smlx/fix-variable-naming
Browse files Browse the repository at this point in the history
fix: variable names in script should match output
  • Loading branch information
smlx authored May 24, 2024
2 parents 3f7c369 + 98ac84b commit c5f6769
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ WRITE_TAG="$1"
git config --global --add safe.directory /github/workspace
# if the ccv tag exists, just exit
if [ "$(git tag -l "$(ccv)")" ]; then
echo "new_tag=false" >>"$GITHUB_OUTPUT"
echo "new-tag=false" >>"$GITHUB_OUTPUT"
exit
fi
# if it doesn't, tag and push
if [ "$WRITE_TAG" = "true" ]; then
git tag "$(ccv)"
git push --tags
fi
echo "new_tag=true" >>"$GITHUB_OUTPUT"
echo "new_tag_version=$(ccv)" >>"$GITHUB_OUTPUT"
echo "new-tag=true" >>"$GITHUB_OUTPUT"
echo "new-tag-version=$(ccv)" >>"$GITHUB_OUTPUT"

0 comments on commit c5f6769

Please sign in to comment.