Skip to content

Commit

Permalink
fix: expect version to be string
Browse files Browse the repository at this point in the history
  • Loading branch information
galargh committed Jul 27, 2024
1 parent 115bad6 commit 3300abc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
if [[ -f "$root/$source" ]]; then
echo "Checking $root/$source"
git checkout "$HEAD_SHA" -- "$root/$source"
version="$(yq -r '.package.version // .version // ""' "$root/$source")"
version="$(yq -r '.package.version // .version | select(type == "string")' "$root/$source")"
git checkout HEAD -- "$root/$source"
version="${version#v}"
if [[ "$root" == "." ]]; then
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/releaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
if [[ -f "$root/$source" ]]; then
echo "Checking $root/$source"
git checkout "$HEAD_SHA" -- "$root/$source"
version="$(yq -r '.package.version // .version // ""' "$root/$source")"
version="$(yq -r '.package.version // .version | select(type == "string")' "$root/$source")"
git checkout HEAD -- "$root/$source"
version="${version#v}"
if [[ "$root" == "." ]]; then
Expand Down

0 comments on commit 3300abc

Please sign in to comment.