Skip to content

Commit 8960bcc

Browse files
committed
fix(ci): persist validated source pin across deploy steps
1 parent 6ded066 commit 8960bcc

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎.github/workflows/deploy-hf-space.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ jobs:
5050
[[ "$LIBREFS_COMMIT" =~ ^[0-9a-f]{40}$ ]]
5151
SPACE_ID="$(python3 -c 'import os,tomllib; print(tomllib.load(open(os.environ["HFS_MANIFEST"], "rb"))["space"])')"
5252
echo "SPACE_ID=$SPACE_ID" >> "$GITHUB_ENV"
53+
echo "LIBREFS_COMMIT=$LIBREFS_COMMIT" >> "$GITHUB_ENV"
5354
python3 -m pip install --disable-pip-version-check "huggingface_hub==${HF_CLI_VERSION}"
5455
if [[ "${{ inputs.target }}" == candidate ]]; then
5556
test "$(hf spaces info "$SPACE_ID" --expand private --json | python3 -c 'import json,sys; print(str(json.load(sys.stdin)["private"]).lower())')" = true

0 commit comments

Comments
 (0)