Skip to content

Commit

Permalink
simplify check
Browse files Browse the repository at this point in the history
  • Loading branch information
mre committed Jan 5, 2024
1 parent d7965aa commit 089c737
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ jobs:
- name: Check if lychee-lib is already published
id: check-release
run: |
VERSION=$(cargo read-manifest --manifest-path lychee-lib/Cargo.toml | jq -r .version)
if cargo search lychee-lib --limit 1 | grep -q "lychee-lib = \"$VERSION\""; then
VERSION=$(cargo pkgid --manifest-path lychee-lib/Cargo.toml | cut -d "#" -f2)
if cargo search lychee-lib | grep -q \"$VERSION\"; then
echo "Lychee-lib version $VERSION is already published. Skipping."
echo "::set-output name=published::true"
else
Expand Down

0 comments on commit 089c737

Please sign in to comment.