Skip to content

Commit

Permalink
Update requirements-up-to-date.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
michplunkett committed Dec 10, 2024
1 parent 18951f7 commit 7c897c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/requirements-up-to-date.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
echo "Checking if requirements.txt has been updated..."
BASE_BRANCH=${{ github.event.pull_request.base.ref }}
HEAD_BRANCH=${{ github.event.pull_request.head.ref }}
REQUIREMENTS_CHANGED=$(git diff --name-only origin/$BASE_BRANCH -- origin/$HEAD_BRANCH || grep -q "requirements.txt" && echo true || echo false)
REQUIREMENTS_CHANGED=$(git diff --name-only origin/$BASE_BRANCH -- origin/$HEAD_BRANCH | grep -q "requirements.txt" && echo true || echo false)
if [ "$REQUIREMENTS_CHANGED" == "true" ]; then
echo "requirements.txt updated correctly."
else
Expand Down

0 comments on commit 7c897c1

Please sign in to comment.