Skip to content

Commit 67c38fd

Browse files
committed
More Frequent Lesson Updates
- Updated actions/checkout to v4 on all workflows - refresh_lessons now work every 5 minutes.
1 parent 34c3a14 commit 67c38fd

File tree

6 files changed

+14
-13
lines changed

6 files changed

+14
-13
lines changed

.github/workflows/keep_alive.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ jobs:
88
name: Cronjob based github action
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v3
11+
- uses: actions/checkout@v4
1212
# commits to the repo if the last commit was 50 days ago to keep the repo alive.
1313
- uses: gautamkrishnar/keepalive-workflow@v1

.github/workflows/refresh_course_plans.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ jobs:
1414
steps:
1515
# Clones the repo
1616
- name: Checkout Repo Content
17-
uses: actions/checkout@v2
17+
uses: actions/checkout@v4
1818

1919
# Clones the data repo
2020
- name: Clone Data Repo
21-
uses: actions/checkout@v2
21+
uses: actions/checkout@v4
2222
with:
2323
repository: itu-helper/data
2424
token: ${{ secrets.API_TOKEN_GITHUB }}

.github/workflows/refresh_courses.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ jobs:
1414
steps:
1515
# Clones the repo
1616
- name: Checkout Repo Content
17-
uses: actions/checkout@v2
17+
uses: actions/checkout@v4
1818

1919
# Clones the data repo
2020
- name: Clone Data Repo
21-
uses: actions/checkout@v2
21+
uses: actions/checkout@v4
2222
with:
2323
repository: itu-helper/data
2424
token: ${{ secrets.API_TOKEN_GITHUB }}

.github/workflows/refresh_lessons.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,24 @@ name: Refresh Lessons
22

33
on:
44
schedule:
5-
# At every 15th minute from 4 through 59 past every hour from 2 through 23.
6-
- cron: "4/15 2/1 * * *"
5+
# At every 5th minute from 4 through 59 past every hour from 2 through 23.
6+
- cron: "4/5 2/1 * * *"
77

88
workflow_dispatch:
99

1010
jobs:
1111
refresh_lessons:
1212
runs-on: ubuntu-latest
13+
timeout-minutes: 5
1314

1415
steps:
1516
# Clones the repo
1617
- name: Checkout Repo Content
17-
uses: actions/checkout@v2
18+
uses: actions/checkout@v4
1819

1920
# Clones the data repo
2021
- name: Clone Data Repo
21-
uses: actions/checkout@v2
22+
uses: actions/checkout@v4
2223
with:
2324
repository: itu-helper/data
2425
token: ${{ secrets.API_TOKEN_GITHUB }}

.github/workflows/refresh_misc.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ jobs:
1414
steps:
1515
# Clones the repo
1616
- name: Checkout Repo Content
17-
uses: actions/checkout@v2
17+
uses: actions/checkout@v4
1818

1919
# Clones the data repo
2020
- name: Clone Data Repo
21-
uses: actions/checkout@v2
21+
uses: actions/checkout@v4
2222
with:
2323
repository: itu-helper/data
2424
token: ${{ secrets.API_TOKEN_GITHUB }}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ _Github Actions_ kullanarak **Veri Yenileme Aralıkları** kısmında belirtilen
3838

3939
## **Veri Yenileme Aralıkları**
4040

41-
- **(00:04 - 02:49) 15dk da bir**: _Lesson_'lar güncellenir.
41+
- **(00:04 - 02:49) 5 dk'de bir**: _Lesson_'lar güncellenir.
4242
- **(02:55)**: Bina ve program kodları güncellenir.
4343
- **(03:00)**:
4444
- **Pazartesileri**: _Course_'lar güncellenir.
4545
- **Salıları**: Ders Planları güncellenir.
46-
- **(05:04 - 23:49) 15dk da bir**: _Lesson_'lar güncellenir.
46+
- **(05:04 - 23:49) 5 dk'de bir**: _Lesson_'lar güncellenir.
4747

4848
> [!NOTE]
4949
> _Lesson_'ların daha sık güncellenmesinin nedeni kontenjan verilerinin güncel tutulmasının gerekmesidir. _Course_'ların ve Ders Planlarının güncellendiği sırada _Lesson_'ların güncellenememsi _Github Actions_'da kullandığımız _Git Auto Commit_'in repo'da değişiklik olması durumda commit atamamasındandır.

0 commit comments

Comments
 (0)