From ba99c722c635bc85418caa9771ee698240c14f09 Mon Sep 17 00:00:00 2001 From: kyy Date: Fri, 5 Sep 2025 13:43:31 +0900 Subject: [PATCH] =?UTF-8?q?=EC=8A=A4=ED=81=AC=EB=A6=BD=ED=8A=B8=20?= =?UTF-8?q?=EC=A4=84=20=EB=B0=94=EA=BF=88=20=ED=98=95=EC=8B=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/main.yml | 23 +---------------------- run_table.sh | 2 +- 2 files changed, 2 insertions(+), 23 deletions(-) diff --git a/.gitea/workflows/main.yml b/.gitea/workflows/main.yml index 9094b90..d28fe04 100644 --- a/.gitea/workflows/main.yml +++ b/.gitea/workflows/main.yml @@ -2,7 +2,7 @@ name: Run Report Table on: schedule: - - cron: "41 4 * * *" + - cron: "45 4 * * *" jobs: run-script: runs-on: ubuntu-latest @@ -26,27 +26,6 @@ jobs: - name: Install dependencies run: pip install -r requirements.txt - - name: Verify Connections - shell: bash - env: - GRAFANA_URL: ${{ vars.GRAFANA_URL }} - GRAFANA_API_KEY: ${{ secrets.GRAFANA_API_KEY }} - MATTERMOST_WEBHOOK: ${{ vars.MATTERMOST_WEBHOOK }} - run: | - set -euo pipefail - echo "[INFO] Checking Grafana connection..." - curl --fail --silent --output /dev/null \ - -H "Authorization: Bearer ${GRAFANA_API_KEY}" \ - "${GRAFANA_URL}/api/health" - echo "[OK] Grafana connection successful." - - echo "[INFO] Checking Mattermost webhook..." - curl --fail --silent --output /dev/null \ - -X POST -H 'Content-Type: application/json' \ - -d '{"text": "CI connection test: OK"}' \ - "${MATTERMOST_WEBHOOK}" - echo "[OK] Mattermost webhook successful." - - name: Run script shell: bash env: diff --git a/run_table.sh b/run_table.sh index 753d19c..6b8109a 100644 --- a/run_table.sh +++ b/run_table.sh @@ -15,7 +15,7 @@ TS="$(date +%Y%m%d_%H%M%S)" LOG_FILE="${LOG_DIR}/report_${ABSOLUTE_RANGE}_${TS}.log" (cd src && python3 -m report_table \ - --range "${ABSOLUTE_RANGE}") \ + --range "${ABSOLUTE_RANGE}") \ >> "${LOG_FILE}" 2>&1 echo "[OK] Started background job."