Skip to content

Commit

Permalink
Update poetry-export_dependencies.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kenlhlui authored Feb 4, 2025
1 parent d0b024d commit 57203cd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/poetry-export_dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,15 @@ jobs:
- name: Get branch name
shell: bash
run: echo "BRANCH_NAME=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
- name: Fetch main branch
shell: bash
run: git fetch origin main
- name: Check for changes
id: check_changes
shell: bash
run: |
# Use git diff to check actual content changes
if ! git diff --quiet requirements.txt poetry.lock; then
# Use git diff to check actual content changes with the remotte
if ! git diff origin/main --quiet -- requirements.txt poetry.lock; then
echo "changes=true" >> $GITHUB_OUTPUT
else
echo "changes=false" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 57203cd

Please sign in to comment.