File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -6,12 +6,12 @@ BRANCH_NAME=${GITHUB_REF#refs/heads/}
66AUTHOR_NAME=$( git log -1 --pretty=format:" %an" )
77AUTHOR_EMAIL=$( git log -1 --pretty=format:" %ae" )
88
9- if [[ " $AUTHOR " == * dependabot* ]] ; then
9+ if [[ " $AUTHOR_NAME " == * dependabot* ]] ; then
1010 # Read requirements.txt, exclude comments, and format as TOML array
1111 constraints=$( grep -vE ' ^\s*#' requirements.txt | awk ' {print " \""$0"\","}' )
1212
1313 # Append constraint-dependencies to pyproject.toml
14- cat << EOF >> pyproject.toml
14+ cat << EOF >> pyproject.toml
1515
1616[tool.uv]
1717constraint-dependencies = [
4242
4343git add uv.lock requirements.txt
4444if ! git diff --cached --quiet; then
45- git config --global user.name " $AUTHOR_NAME "
46- git config --global user.email " $AUTHOR_EMAIL "
47- git commit -m " Sync uv.lock and requirements.txt"
48- git push origin $BRANCH_NAME
45+ # git config --global user.name "$AUTHOR_NAME"
46+ # git config --global user.email "$AUTHOR_EMAIL"
47+ # git commit -m "Sync uv.lock and requirements.txt"
48+ # git push origin $BRANCH_NAME
49+ echo " push changes"
4950fi
You can’t perform that action at this time.
0 commit comments