Skip to content

Commit

Permalink
fix: yaml cd
Browse files Browse the repository at this point in the history
  • Loading branch information
m4dm4rtig4n committed Jan 22, 2024
1 parent 46da4b4 commit ff2e669
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,19 @@ jobs:
with:
args: '**MyElectricalData** : Version **${{ needs.informations.outputs.version }}** is in building state...'

- name: Get version
id: informations
run: |
version=$(cat src/main.py |grep VERSION| awk '{print $3}' | tr -d '"')
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"
else
# PRERELEASE
echo "release_type=prerelease" >> "$GITHUB_OUTPUT"
fi
- name: Get version
id: informations
run: |
version=$(cat src/main.py |grep VERSION| awk '{print $3}' | tr -d '"')
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"
else
# PRERELEASE
echo "release_type=prerelease" >> "$GITHUB_OUTPUT"
fi
outputs:
version: ${{ steps.informations.outputs.version }}
release_type: ${{ steps.informations.outputs.release_type }}
Expand Down

0 comments on commit ff2e669

Please sign in to comment.