File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 32
32
is-unpublished :
33
33
runs-on : ubuntu-latest
34
34
name : Is this version unpublished?
35
+ outputs :
36
+ should_publish : ${{ steps.compare.outputs.should_publish }}
37
+ version : ${{ steps.extract_version.outputs.version }}
35
38
steps :
36
39
- uses : actions/checkout@v4
37
40
- name : Install Rust Toolchain
53
56
id : latest_version
54
57
run : echo "LATEST_VERSION=$(cargo search ${{ env.PACKAGE_NAME }} --limit 1 | grep -oP '(?<=").*(?=")' | head -1)" >> $GITHUB_ENV
55
58
- name : Compare versions
59
+ id : compare
56
60
run : |
57
61
if [ "$(printf '%s\n' "${{ env.LATEST_VERSION }}" "${{ env.PACKAGE_VERSION }}" | sort -V | tail -n1)" = "${{ env.PACKAGE_VERSION }}" ] && [ "${{ env.PACKAGE_VERSION }}" != "${{ env.LATEST_VERSION }}" ]; then
58
62
echo "Local version (${{ env.PACKAGE_VERSION }}) is newer than the latest published version (${{ env.LATEST_VERSION }})"
You can’t perform that action at this time.
0 commit comments