Skip to content

Commit

Permalink
fix: vars prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
m4dm4rtig4n committed Jan 22, 2024
1 parent c9f334c commit 467f8bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ jobs:
id: informations
run: |
version=$(cat src/main.py |grep VERSION| awk '{print $3}' | tr -d '"')
echo "version=${version}" >> "$GITHUB_ENV"
echo "version=${version}" >> "$GITHUB_OUTPUT"
release_type=$(cat src/main.py |grep VERSION| awk '{print $3}' | tr -d '"'| grep rc)
if [ "$release_type" == "" ]; then
# RELEASE
echo "release_type=release" >> "GITHUB_OUTPUT"
echo "release_type=release" >> "$GITHUB_OUTPUT"
else
# PRERELEASE
echo "release_type=prerelease" >> "GITHUB_OUTPUT"
echo "release_type=prerelease" >> "$GITHUB_OUTPUT"
fi
outputs:
version: ${{ steps.informations.outputs.version }}
Expand Down

0 comments on commit 467f8bd

Please sign in to comment.