From 95ce4e4d5cc72b62970056977256a6592a10547c Mon Sep 17 00:00:00 2001 From: andy Augustin Date: Sun, 25 Feb 2024 20:52:49 +0100 Subject: [PATCH] fix: :bug: try catch for edge cases (#465) --- src/sync_template.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/sync_template.sh b/src/sync_template.sh index d528b44b..cd7df0d0 100644 --- a/src/sync_template.sh +++ b/src/sync_template.sh @@ -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 }