Files
grafana_alerts/.gitea/workflows/main.yml
kyy 04dff5ebbd
All checks were successful
Run Report Table / run-script (push) Successful in 1m45s
git action 자동화 테스트용
2025-09-05 11:37:26 +09:00

28 lines
659 B
YAML

# .gitea/workflows/main.yml
name: Run Report Table
on:
schedule:
- cron: "40 2 * * *" # 11:40 KST is 02:40 UTC
jobs:
run-script:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Fix line endings and permissions
shell: bash
run: |
sudo apt-get update -y && sudo apt-get install -y dos2unix
dos2unix run_table.sh
chmod +x run_table.sh
- name: Run script
shell: bash
run: |
if [ "$(date -u +%u)" -eq 1 ]; then
bash ./run_table.sh 7d
else
bash ./run_table.sh 24h
fi