mirror of
https://github.com/obi1kenobi/cargo-semver-checks-action.git
synced 2025-01-18 17:04:44 +01:00
Explicitly fetch the comparison tag.
This commit is contained in:
parent
1bd4be9e75
commit
7946ceb19e
1 changed files with 3 additions and 1 deletions
|
@ -40,7 +40,9 @@ runs:
|
|||
# We *do not* want to record and reuse the target directory path
|
||||
# across different git commits, since it may be at a different location
|
||||
# in different commits.
|
||||
git checkout "${{ 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 "$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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue