Skip to content
This repository was archived by the owner on Aug 29, 2023. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions .github/workflows/release-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,16 @@ jobs:
run: |
git fetch origin --tags
go install github.com/marten-seemann/semver-highest@fcdc98f8820ff0e6613c1bee071c096febd98dbf
v=$(semver-highest -target ${{ env.VERSION }} -versions $(git tag | paste -sd , -))
status=$?
if [[ $status != 0 ]]; then
echo $v
exit $status
vs=$(git tag | paste -sd , -)
if [[ ! -z "$vs" ]]; then
v=$(semver-highest -target ${{ env.VERSION }} -versions "$vs")
status=$?
if [[ $status != 0 ]]; then
echo $v
exit $status
fi
echo "COMPARETO=$v" >> $GITHUB_ENV
fi
echo "COMPARETO=$v" >> $GITHUB_ENV
- name: Post output
if: env.TAG_EXISTS == 'false' && env.COMPARETO == ''
uses: marocchino/sticky-pull-request-comment@82e7a0d3c51217201b3fedc4ddde6632e969a477 # v2.1.1
Expand Down