git schedule 관련 sh 실행 권한 부여

This commit is contained in:
kyy
2025-09-05 11:34:51 +09:00
parent dde582e5af
commit dfdf753f26

View File

@@ -1,17 +1,27 @@
# .gitea/workflows/main.yml
name: Run Report Table
on:
schedule:
- cron: "10 2 * * *"
- cron: "10 2 * * *" # 11:10 KST is 02:10 UTC
jobs:
run-script:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Run script
uses: actions/checkout@v4
- name: Fix line endings and permissions
shell: bash
run: |
if [ $(date -u +%u) -eq 1 ]; then
./run_table.sh 7d
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
./run_table.sh 24h
bash ./run_table.sh 24h
fi