From 9fbc74d4985f4619648e683c8177b222f6948987 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Murat=20=C3=96ZDEM=C4=B0R?= Date: Fri, 26 Jun 2026 19:39:48 +0300 Subject: [PATCH] fix(workflow): use -s flag to trigger Uptime Kuma setup on empty uk_tokens.yml The previous ! -f check skipped setup when uk_tokens.yml existed but was empty (0 bytes). Switching to ! -s triggers setup whenever the file is missing or empty. --- .gitea/workflows/deploy-monitoring-prod.yml | 2 +- .gitea/workflows/deploy-monitoring-test.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy-monitoring-prod.yml b/.gitea/workflows/deploy-monitoring-prod.yml index 80ccc6f..a6478b9 100644 --- a/.gitea/workflows/deploy-monitoring-prod.yml +++ b/.gitea/workflows/deploy-monitoring-prod.yml @@ -90,7 +90,7 @@ jobs: export SPRING_PROFILES_ACTIVE=PROD source_env_file ./health-agent/.env mkdir -p "${HEALTH_AGENT_CONFIG_GENERATED_DIR}" - if [ ! -f "${HEALTH_AGENT_CONFIG_GENERATED_DIR}/uk_tokens.yml" ]; then + if [ ! -s "${HEALTH_AGENT_CONFIG_GENERATED_DIR}/uk_tokens.yml" ]; then docker run --rm \ -v "${HEALTH_AGENT_CONFIG_GENERATED_DIR}:/app/config/generated" \ --env-file "$(pwd)/health-agent/.env" \ diff --git a/.gitea/workflows/deploy-monitoring-test.yml b/.gitea/workflows/deploy-monitoring-test.yml index f271fc4..ea5b98e 100644 --- a/.gitea/workflows/deploy-monitoring-test.yml +++ b/.gitea/workflows/deploy-monitoring-test.yml @@ -80,7 +80,7 @@ jobs: export SPRING_PROFILES_ACTIVE=TEST source_env_file ./health-agent/.env mkdir -p "${HEALTH_AGENT_CONFIG_GENERATED_DIR}" - if [ ! -f "${HEALTH_AGENT_CONFIG_GENERATED_DIR}/uk_tokens.yml" ]; then + if [ ! -s "${HEALTH_AGENT_CONFIG_GENERATED_DIR}/uk_tokens.yml" ]; then docker run --rm \ -v "${HEALTH_AGENT_CONFIG_GENERATED_DIR}:/app/config/generated" \ --env-file "$(pwd)/health-agent/.env" \