git schedule 관련 sh 실행 권한 부여
This commit is contained in:
@@ -1,17 +1,27 @@
|
|||||||
|
# .gitea/workflows/main.yml
|
||||||
name: Run Report Table
|
name: Run Report Table
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "10 2 * * *"
|
- cron: "10 2 * * *" # 11:10 KST is 02:10 UTC
|
||||||
jobs:
|
jobs:
|
||||||
run-script:
|
run-script:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
- name: Run script
|
|
||||||
|
- name: Fix line endings and permissions
|
||||||
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
if [ $(date -u +%u) -eq 1 ]; then
|
sudo apt-get update -y && sudo apt-get install -y dos2unix
|
||||||
./run_table.sh 7d
|
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
|
else
|
||||||
./run_table.sh 24h
|
bash ./run_table.sh 24h
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user