From 63fa4b96586afab9654b828b2f22980a19bb4a4c Mon Sep 17 00:00:00 2001 From: Michel Roegl-Brunner Date: Tue, 18 Mar 2025 09:46:19 +0100 Subject: [PATCH] Workflow --- .github/workflows/move-to-main-repo.yaml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/.github/workflows/move-to-main-repo.yaml b/.github/workflows/move-to-main-repo.yaml index 385aa1d..4376e87 100644 --- a/.github/workflows/move-to-main-repo.yaml +++ b/.github/workflows/move-to-main-repo.yaml @@ -64,23 +64,17 @@ jobs: json_file="frontend/public/json/${script_name}.json" - if [[ -f "$ct_file" ]]; then - - else + if [[ ! -f "$ct_file" ]]; then echo "ct file not found." echo "files_found=false" >> $GITHUB_OUTPUT echo "missing=$ct_file" >> $GITHUB_OUTPUT fi - if [[ -f "$install_file" ]]; then - - else - echo "install file not found." + if [[ ! -f "$install_file" ]]; then + echo "install file not found." echo "files_found=false" >> $GITHUB_OUTPUT echo "missing=$install_file" >> $GITHUB_OUTPUT fi - if [[ -f "$json_file" ]]; then - - else + if [[ ! -f "$json_file" ]]; then echo "json file not found." echo "files_found=false" >> $GITHUB_OUTPUT echo "missing=$json_file" >> $GITHUB_OUTPUT