ci(github/new-version): added debug logs

This commit is contained in:
Luis Quiñones
2024-11-29 21:21:19 -05:00
parent a9cf2b2957
commit 1af793fcfb

View File

@@ -5,7 +5,10 @@ upstream_data=$(curl -s https://api.github.com/repos/zen-browser/desktop/release
echo "Upstream data: $upstream_data" >&2
upstream=$(echo "$upstream_data" | jq -r '.tag_name')
echo "Upstream version is: $upstream" >&2
local=$(grep -oP 'version = "\K[^"]+' flake.nix)
echo "Current version (local) is: $local" >&2
if [ "$upstream" != "$local" ]; then
echo "new_version=true" >>"$GITHUB_OUTPUT"