mirror of
https://github.com/Paillat-dev/discord-emojis.git
synced 2026-01-02 00:56:19 +00:00
Refactor exit code handling in update script to log failure exit codes for better debugging
This commit is contained in:
2
.github/workflows/build.yaml
vendored
2
.github/workflows/build.yaml
vendored
@@ -62,7 +62,6 @@ jobs:
|
||||
run: |
|
||||
uv run src
|
||||
EXIT_CODE=$?
|
||||
echo "exit_code=$EXIT_CODE" >> $GITHUB_ENV
|
||||
if [ $EXIT_CODE -eq 0 ]; then
|
||||
echo "Changes detected"
|
||||
echo "changes_detected=true" >> $GITHUB_ENV
|
||||
@@ -74,6 +73,7 @@ jobs:
|
||||
exit 0
|
||||
else
|
||||
echo "Script failed with exit code $EXIT_CODE"
|
||||
echo "exit_code=$EXIT_CODE" >> $GITHUB_ENV
|
||||
exit $EXIT_CODE
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user