There was an error while loading. Please reload this page.
1 parent 7e5a223 commit 87e9f06Copy full SHA for 87e9f06
1 file changed
.github/workflows/ci.yml
@@ -85,9 +85,15 @@ jobs:
85
STATUS="$(git status)"
86
echo "$STATUS"
87
88
- # grep will exit non-zero if the target message isn't found,
89
- # and `set -e` above will cause the step to fail.
90
- echo "$STATUS" | grep 'nothing to commit, working tree clean'
+ # Ignore changes to poetry.lock and pyproject.toml when checking for a clean working tree
+ CHANGED=$(git status --porcelain | grep -vE 'poetry.lock|pyproject.toml')
+ if [ -z "$CHANGED" ]; then
91
+ echo "No relevant changes detected."
92
+ else
93
+ echo "Unexpected changes detected:"
94
+ echo "$CHANGED"
95
+ exit 1
96
+ fi
97
env:
98
COHERE_API_KEY: ${{ secrets.COHERE_API_KEY }}
99
0 commit comments