Skip to content
This repository has been archived by the owner on Jan 3, 2025. It is now read-only.

Commit

Permalink
⚡️💚 Fix CI/CD ($GITHUB_OUTPUT) & Deepsource
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinNitroG committed Jan 17, 2024
1 parent 73510ee commit 8cddb02
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ jobs:
id: get_variables
run: |
VERSION=$(cat "src/CONSTANTS.py" | grep VERSION | cut -d "=" -f 2 | sed 's/"//g' | sed 's/ //g')
echo "VERSION=$VERSION" >> GITHUB_OUTPUT
echo "VERSION=$VERSION" >> "$GITHUB_OUTPUT"
if [[ $VERSION == *"beta"* ]]; then
echo "SET_PRE_RELEASE=true" >> GITHUB_OUTPUT
echo "SET_PRE_RELEASE=true" >> "$GITHUB_OUTPUT"
else
echo "SET_PRE_RELEASE=false" >> GITHUB_OUTPUT
echo "SET_PRE_RELEASE=false" >> "$GITHUB_OUTPUT"
fi
build:
Expand Down Expand Up @@ -79,15 +79,12 @@ jobs:

- name: Upload to Release
uses: svenstaro/upload-release-action@master
env:
VERSION: ${{ needs.prepare.outputs.VERSION }}
SET_PRE_RELEASE: ${{ needs.prepare.outputs.SET_PRE_RELEASE }}
with:
body: ${{ env.VERSION }}
body: ${{ needs.prepare.outputs.VERSION }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./dist/VNULIB-Downloader-*
release_name: VNULIB Downloader ${{ env.VERSION }}
tag: ${{ env.VERSION }}
release_name: VNULIB Downloader ${{ needs.prepare.outputs.VERSION }}
tag: ${{ needs.prepare.outputs.VERSION }}
file_glob: true
overwrite: false
prerelease: ${{ env.SET_PRE_RELEASE }}
prerelease: ${{ needs.prepare.outputs.SET_PRE_RELEASE }}
3 changes: 1 addition & 2 deletions src/utils/printIntro.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"""Print out the banner, authors, version"""


from os import get_terminal_size
from print_color.print_color import print as printColor
from ..utils import TERMINAL_SIZE_COLUMNS
from ..CONSTANTS import BANNER, AUTHORS, VERSION
Expand Down Expand Up @@ -56,7 +55,7 @@ def printIntro() -> None:
Returns:
- None
"""
printBanner(lines=[line for line in BANNER.split('\n')])
printBanner(lines=list(BANNER.split('\n')))
printAuthors(authors=AUTHORS)
printVersion(version=VERSION)
print()

0 comments on commit 8cddb02

Please sign in to comment.