Skip to content

Commit 5043474

Browse files
committed
Fixed API contract check workflow
1 parent 5fad76a commit 5043474

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.github/workflows/check_api_changes.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ jobs:
2424
id: check_changes
2525
run: |
2626
# Check if the API contract test file was modified
27-
git diff --name-only ${{ github.event.pull_request.base.sha }}..HEAD | grep -q "tests/test_api_contract.py"
28-
29-
if [ $? -eq 0 ]; then
27+
if git diff --name-only ${{ github.event.pull_request.base.sha }}..HEAD | grep -q "tests/test_api_contract.py"; then
3028
echo "contract_changed=true" >> $GITHUB_OUTPUT
3129
echo "API contract test file was modified in this PR"
3230
else

0 commit comments

Comments
 (0)