From 71067de7121d55088ad9f63bac0206800e0618f4 Mon Sep 17 00:00:00 2001 From: Predrag Gruevski Date: Tue, 2 Aug 2022 12:17:03 -0700 Subject: [PATCH] More handholding of git fetch. --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 980c645..0d31e2f 100644 --- a/action.yml +++ b/action.yml @@ -41,7 +41,7 @@ runs: # across different git commits, since it may be at a different location # in different commits. export COMPARISON_TAG="${{ inputs.version-tag-prefix }}$("$GITHUB_ACTION_PATH/find_comparison_version.sh" "$PACKAGE_NAME")" - git fetch --depth=1 origin "$COMPARISON_TAG" + git fetch --depth=1 origin "+refs/tags/$COMPARISON_TAG:refs/tags/$COMPARISON_TAG" git checkout "$COMPARISON_TAG" cargo +nightly rustdoc -- -Zunstable-options --output-format json mv "$(cargo metadata --format-version 1 | jq -r .target_directory)/doc/$PACKAGE_NAME_WITH_UNDERSCORES.json" /tmp/baseline.json