mirror of
https://github.com/obi1kenobi/cargo-semver-checks-action.git
synced 2024-11-25 17:39:33 +01:00
Perform a depth=1 fetch of the tag.
This commit is contained in:
parent
00b3af39f7
commit
4227a503aa
1 changed files with 2 additions and 2 deletions
|
@ -41,8 +41,8 @@ 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 origin "$COMPARISON_TAG"
|
git fetch --depth=1 origin "$COMPARISON_TAG"
|
||||||
git checkout --detach "$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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue