More handholding of git fetch.

This commit is contained in:
Predrag Gruevski 2022-08-02 12:17:03 -07:00
parent 4227a503aa
commit 71067de712

View file

@ -41,7 +41,7 @@ runs:
# across different git commits, since it may be at a different location # across different git commits, since it may be at a different location
# in different commits. # in different commits.
export COMPARISON_TAG="${{ inputs.version-tag-prefix }}$("$GITHUB_ACTION_PATH/find_comparison_version.sh" "$PACKAGE_NAME")" 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" git checkout "$COMPARISON_TAG"
cargo +nightly rustdoc -- -Zunstable-options --output-format json 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 mv "$(cargo metadata --format-version 1 | jq -r .target_directory)/doc/$PACKAGE_NAME_WITH_UNDERSCORES.json" /tmp/baseline.json