diff --git a/bin/uv-sync.sh b/bin/uv-sync.sh index a9bd32f..00174c7 100755 --- a/bin/uv-sync.sh +++ b/bin/uv-sync.sh @@ -6,12 +6,12 @@ BRANCH_NAME=${GITHUB_REF#refs/heads/} AUTHOR_NAME=$(git log -1 --pretty=format:"%an") AUTHOR_EMAIL=$(git log -1 --pretty=format:"%ae") -if [[ "$AUTHOR" == *dependabot* ]] ; then +if [[ "$AUTHOR_NAME" == *dependabot* ]] ; then # Read requirements.txt, exclude comments, and format as TOML array constraints=$(grep -vE '^\s*#' requirements.txt | awk '{print " \""$0"\","}') # Append constraint-dependencies to pyproject.toml - cat << EOF >> pyproject.toml + cat <> pyproject.toml [tool.uv] constraint-dependencies = [ @@ -42,8 +42,9 @@ EOF git add uv.lock requirements.txt if ! git diff --cached --quiet; then - git config --global user.name "$AUTHOR_NAME" - git config --global user.email "$AUTHOR_EMAIL" - git commit -m "Sync uv.lock and requirements.txt" - git push origin $BRANCH_NAME + # git config --global user.name "$AUTHOR_NAME" + # git config --global user.email "$AUTHOR_EMAIL" + # git commit -m "Sync uv.lock and requirements.txt" + # git push origin $BRANCH_NAME + echo "push changes" fi