From 6d7e4c1aa30e1aff11892fdc54f838063001cfcd Mon Sep 17 00:00:00 2001 From: Predrag Gruevski Date: Tue, 2 Aug 2022 11:58:37 -0700 Subject: [PATCH] Explicitly specify that we're checking out a tag. --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 2ee9192..27071f5 100644 --- a/action.yml +++ b/action.yml @@ -42,7 +42,7 @@ runs: # in different commits. export COMPARISON_TAG="${{ inputs.version-tag-prefix }}$("$GITHUB_ACTION_PATH/find_comparison_version.sh" "$PACKAGE_NAME")" git fetch origin "$COMPARISON_TAG" - git checkout "$COMPARISON_TAG" + git checkout "tags/$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