Skip to content

Commit d3484d4

Browse files
Update CI workflow to only fail on relevant changes, ignoring poetry.lock and pyproject.toml
1 parent 87e9f06 commit d3484d4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,11 @@ jobs:
8282
8383
set -eu
8484
85-
STATUS="$(git status)"
86-
echo "$STATUS"
87-
88-
# Ignore changes to poetry.lock and pyproject.toml when checking for a clean working tree
85+
# Only fail if there are changes other than poetry.lock and pyproject.toml
8986
CHANGED=$(git status --porcelain | grep -vE 'poetry.lock|pyproject.toml')
9087
if [ -z "$CHANGED" ]; then
9188
echo "No relevant changes detected."
89+
exit 0
9290
else
9391
echo "Unexpected changes detected:"
9492
echo "$CHANGED"

0 commit comments

Comments
 (0)