mirror of
https://github.com/obi1kenobi/cargo-semver-checks-action.git
synced 2024-11-23 00:19:32 +01:00
Explicitly specify that we're checking out a tag.
This commit is contained in:
parent
aa9e803411
commit
6d7e4c1aa3
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ runs:
|
||||||
# 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 origin "$COMPARISON_TAG"
|
||||||
git checkout "$COMPARISON_TAG"
|
git checkout "tags/$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