This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
name: Run Report Table
|
name: Run Report Table
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "40 2 * * *" # 11:40 KST is 02:40 UTC
|
- cron: "50 2 * * *" # 11:50 KST is 02:50 UTC
|
||||||
jobs:
|
jobs:
|
||||||
run-script:
|
run-script:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -13,13 +13,15 @@ jobs:
|
|||||||
- name: Fix line endings and permissions
|
- name: Fix line endings and permissions
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update -y && sudo apt-get install -y dos2unix
|
set -euo pipefail
|
||||||
dos2unix run_table.sh
|
sed -i 's/\r$//' run_table.sh
|
||||||
chmod +x run_table.sh
|
chmod +x run_table.sh
|
||||||
|
echo "[OK] Prepared run_table.sh"
|
||||||
|
|
||||||
- name: Run script
|
- name: Run script
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
if [ "$(date -u +%u)" -eq 1 ]; then
|
if [ "$(date -u +%u)" -eq 1 ]; then
|
||||||
bash ./run_table.sh 7d
|
bash ./run_table.sh 7d
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user