Skip to content

Commit

Permalink
Update update_label.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
codycooperross authored Jul 26, 2024
1 parent fdb8fdf commit ba49dc8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/update_label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,14 @@ jobs:
response=$(gh label edit "$NAME" -n "$NEW_NAME" -c $NEW_COLOR -d "$NEW_DESCRIPTION" -R $DEST_REPO 2>&1)
exit_code=$?
echo $response
echo $exit_code
if [[ "$response" == *"404"* ]] || [[ $exit_code != 1 ]]; then
echo "Success"
exit 0
else
echo "Failure"
exit 1
fi
env:
Expand Down

0 comments on commit ba49dc8

Please sign in to comment.