Update to newest output syntax

This commit is contained in:
Matthias 2024-01-05 17:53:15 +01:00
parent 089c737aeb
commit d616411668

View file

@ -104,13 +104,13 @@ jobs:
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"
echo "published=true" >> $GITHUB_OUTPUT
else
echo "::set-output name=published::false"
echo "published=false" >> $GITHUB_OUTPUT
fi
- name: cargo publish lychee-lib
if: steps.check-release.outputs.published== 'false'
if: steps.check-release.outputs.published == 'false'
uses: actions-rs/cargo@v1
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}