From 7d56c1d87484294242dd79de42ae6c361393ed52 Mon Sep 17 00:00:00 2001 From: kyy Date: Fri, 5 Sep 2025 11:46:45 +0900 Subject: [PATCH] =?UTF-8?q?dos2unix=20=EC=84=A4=EC=B9=98=20=EC=A0=9C?= =?UTF-8?q?=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/main.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/main.yml b/.gitea/workflows/main.yml index f870684..055ed4b 100644 --- a/.gitea/workflows/main.yml +++ b/.gitea/workflows/main.yml @@ -2,7 +2,7 @@ name: Run Report Table on: schedule: - - cron: "40 2 * * *" # 11:40 KST is 02:40 UTC + - cron: "50 2 * * *" # 11:50 KST is 02:50 UTC jobs: run-script: runs-on: ubuntu-latest @@ -13,13 +13,15 @@ jobs: - name: Fix line endings and permissions shell: bash run: | - sudo apt-get update -y && sudo apt-get install -y dos2unix - dos2unix run_table.sh + set -euo pipefail + sed -i 's/\r$//' run_table.sh chmod +x run_table.sh + echo "[OK] Prepared run_table.sh" - name: Run script shell: bash run: | + set -euo pipefail if [ "$(date -u +%u)" -eq 1 ]; then bash ./run_table.sh 7d else