Skip to content

Commit 3afd04e

Browse files
authored
Merge pull request #2849 from input-output-hk/djo/2824/ci/publish-crate-should-not-fail-if-already-published
fix(ci): crates already published guard was not working
2 parents 5c5e30d + 5c690e7 commit 3afd04e

File tree

1 file changed

+1
-1
lines changed
  • .github/workflows/actions/publish-crate-package

1 file changed

+1
-1
lines changed

.github/workflows/actions/publish-crate-package/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ runs:
2323
shell: bash
2424
run: |
2525
echo "Check crate latest published version for '${{ inputs.package }}' package"
26-
LATEST_REMOTE_VERSION=$(curl -sL https://crates.io/api/v1/crates/${{ inputs.package }} | jq -r '.crate.newest_version')
26+
LATEST_REMOTE_VERSION=$(curl -sL https://crates.io/api/v1/crates/${{ inputs.package }} --user-agent "iog/mithril (https://github.com/input-output-hk/mithril)" | jq -r '.crate.newest_version')
2727
LOCAL_VERSION=$(cargo metadata --quiet --no-deps | jq -r '.packages[] | select(.name=="${{ inputs.package }}") | .version')
2828
echo "Latest crate.io version: $LATEST_REMOTE_VERSION"
2929
echo "Local version: $LOCAL_VERSION"

0 commit comments

Comments
 (0)