mirror of
https://github.com/Paillat-dev/discord-emojis.git
synced 2026-01-02 00:56:19 +00:00
Exit code stuff
This commit is contained in:
4
.github/workflows/build.yaml
vendored
4
.github/workflows/build.yaml
vendored
@@ -62,8 +62,10 @@ jobs:
|
|||||||
echo "exit_code=$EXIT_CODE" >> $GITHUB_ENV
|
echo "exit_code=$EXIT_CODE" >> $GITHUB_ENV
|
||||||
if [ $EXIT_CODE -eq 0 ]; then
|
if [ $EXIT_CODE -eq 0 ]; then
|
||||||
echo "changes_detected=true" >> $GITHUB_ENV
|
echo "changes_detected=true" >> $GITHUB_ENV
|
||||||
elif [ $EXIT_CODE -eq 2 ]; then
|
elif [ $EXIT_CODE -eq 3 ]; then
|
||||||
echo "changes_detected=false" >> $GITHUB_ENV
|
echo "changes_detected=false" >> $GITHUB_ENV
|
||||||
|
# Transform it to 0 to avoid failing the workflow
|
||||||
|
echo "exit_code=0" >> $GITHUB_ENV
|
||||||
else
|
else
|
||||||
echo "Script failed with exit code $EXIT_CODE"
|
echo "Script failed with exit code $EXIT_CODE"
|
||||||
exit $EXIT_CODE
|
exit $EXIT_CODE
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ def main() -> None:
|
|||||||
|
|
||||||
if current_hash == new_hash:
|
if current_hash == new_hash:
|
||||||
print("No changes")
|
print("No changes")
|
||||||
sys.exit(2) # No changes
|
sys.exit(3) # No changes
|
||||||
|
|
||||||
with out_path.open("wb") as out_file:
|
with out_path.open("wb") as out_file:
|
||||||
out_file.write(new_dump)
|
out_file.write(new_dump)
|
||||||
|
|||||||
Reference in New Issue
Block a user