Skip to content

Commit

Permalink
small change in pdm automation
Browse files Browse the repository at this point in the history
  • Loading branch information
kirtimanmishrazipstack committed Jul 19, 2024
1 parent 9ceea8c commit 896348b
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/pdm-lock-automation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ jobs:
echo "Virtual environment already exists."
fi
source .venv/bin/activate
rm -r pdm.lock
pdm lock -G :all
git add pdm.lock
Expand All @@ -85,5 +84,11 @@ jobs:
source .venv/bin/activate
pip install pre-commit~=3.6.2
pre-commit run pdm-lock-check
git commit -m "Update pdm.lock for ${{ matrix.directory }}"
git push origin ${{ github.ref_name }}
if git diff --quiet; then
echo "No changes in compared to the SELF branch."
else
echo "Changes detected in compared to the SELF branch."
git commit -m "Update pdm.lock for ${{ matrix.directory }}"
git push origin ${{ github.ref_name }}
fi

0 comments on commit 896348b

Please sign in to comment.