File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -62,13 +62,13 @@ jobs:
6262 # Create and checkout new branch
6363 git checkout -b $BRANCH_NAME
6464
65- # Update dependencies using sed
66- sed -i -E "s/\"huggingface-hub>=0. *\"/\"huggingface-hub==${VERSION}\"/" setup.py
65+ # Update dependencies using sed - match both >= and == patterns
66+ sed -i -E "s/\"huggingface-hub(>=|==)[^\"] *\"/\"huggingface-hub==${VERSION}\"/" setup.py
6767 git add setup.py
6868
6969 # Only if the target repo is transformers
7070 if [ "${{ matrix.target-repo }}" = "transformers" ]; then
71- sed -i -E "s/\"huggingface-hub>=0. *\"/\"huggingface-hub==${VERSION}\"/" src/transformers/dependency_versions_table.py
71+ sed -i -E "s/\"huggingface-hub(>=|==)[^\"] *\"/\"huggingface-hub==${VERSION}\"/" src/transformers/dependency_versions_table.py
7272 git add src/transformers/dependency_versions_table.py
7373 fi
7474
You can’t perform that action at this time.
0 commit comments