Skip to content

Commit

Permalink
[WORKFLOW] Avoid exiting with error in post-commit if the YARP_ROBOT_…
Browse files Browse the repository at this point in the history
…NAME is not set
  • Loading branch information
S-Dafarra authored and pattacini committed Jul 18, 2024
1 parent d243f59 commit 84c3339
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .githooks/post-commit
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ echo "Post-commit hook running..."

# Check if the environment variable is set
if [ -z "$ENV_VAR_VALUE" ]; then
echo "Environment variable YARP_ROBOT_NAME is not set. Exiting post-commit hook."
exit 1
echo "Environment variable YARP_ROBOT_NAME is not set. Skipping post-commit hook."
exit 0
fi

# Get the current commit message
Expand Down

0 comments on commit 84c3339

Please sign in to comment.