Skip to content

Commit

Permalink
fix: 🐛 try catch for edge cases (#465)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasAugustin committed Feb 25, 2024
1 parent a1af9b2 commit 95ce4e4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/sync_template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,11 @@ function maybe_create_labels () {
if [ "${search_result}" = "${label##[[:space:]]}" ]; then
info "label '${label##[[:space:]]}' was found in the repository"
else
gh label create "${label}"
info "label '${label}' was missing and has been created"
if gh label create "${label}"; then
info "label '${label}' was missing and has been created"
else
warn "label creation did not work. For any reason the former check sometimes is failing"
fi
fi
done
}
Expand Down

0 comments on commit 95ce4e4

Please sign in to comment.