This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user