Skip to content

Commit

Permalink
Update builder script to use yt-dlp version from module and enhance G…
Browse files Browse the repository at this point in the history
…itHub Actions workflow logging. The builder script now retrieves the yt-dlp version dynamically, improving accuracy, while the workflow logs the latest version fetched from GitHub, enhancing traceability.
  • Loading branch information
svemat01 committed Jan 22, 2025
1 parent 7126774 commit c4aa0d8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build-ytdlp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ jobs:
id: ytdlp_version
run: |
LATEST_VERSION=$(curl -s https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest | jq -r .tag_name)
echo "version=${LATEST_VERSION}" >> $GITHUB_OUTPUT
echo "Latest version: $LATEST_VERSION"
echo "version=$LATEST_VERSION" >> $GITHUB_OUTPUT
- name: Clone yt-dlp repository
run: |
Expand Down
4 changes: 3 additions & 1 deletion builder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ set -e
# Default values for build parameters
: "${CHANNEL:=stable}"
: "${ORIGIN:=local}"
: "${VERSION:=$(date +%Y.%m.%d)}"
: "${VERSION:=$(python -c "import yt_dlp; print(yt_dlp.__version__)")}"

echo "Building with version: ${VERSION}"

source ~/.local/share/pipx/venvs/pyinstaller/bin/activate
python -m devscripts.install_deps --include secretstorage --include curl-cffi
Expand Down

0 comments on commit c4aa0d8

Please sign in to comment.