Skip to content

Commit

Permalink
improved scheduling
Browse files Browse the repository at this point in the history
  • Loading branch information
hturner committed Nov 12, 2024
1 parent bd2957c commit be33355
Show file tree
Hide file tree
Showing 8 changed files with 46 additions and 33 deletions.
49 changes: 31 additions & 18 deletions .github/workflows/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,47 @@

All workflows have `on: workflow_dispatch:` so can be run on demand.

1. `changes.yml`: Recent Changes refresh
- every day at 12:20/on push to main when corresponding yml/.R file changes
- run `weblate/Recent Changes/Recent changes.R` to get recent changes from Weblate
- commit with message "Updated changes Csv" and push to main
2. `csv.yml`: Creation of CSV
1. `main_dashboard.yml`: Main Dashboard Refresh
- every day, every 12 hours/on push to main when corresponding yml/index.Rmd file changes
- render `index.Rmd`
- commit with message "CSS updated" and push to main
2. `r_svn_changes.yml`: R SVN Changes
- every day at 00:00/on push to main when corresponding yml/.R file changes
- run `translation_status.R` to get recent changes from r-devel/r-svn GitHub mirror
- commit with message "Added csv in the repository" and push to main
3. `Dashboard.yml`: Weblate Dashboard Refresh
3. `Slack.yaml`: Slack refresh
- at 19:00 on Friday/on push to main when corresponding yml/.R file changes
- run `Slack/Weblate_Slack.R` to send updates to #gsoc-translations channel on R Contributors Slack (e.g. new contributors)
4. `weblate_dashboard.yml`: Weblate Dashboard Refresh
- every day, every 12 hours/on push to main when corresponding yml/index.Rmd file changes
- render `weblate/index.Rmd`
- commit with message "CSS updated" and push to main
4. `languages.yml`: Languages Statistics Refresh
5. `weblate_languages.yml`: Language Statistics Refresh
- every day, at 12:10/on push to main when corresponding yml/.R file changes
- run `weblate/Language Statisitics/Languages_Statistics.R` to get statistics per language: `Language Statistics_new.csv` from Weblate
5. `library.yml`: Library Statistics Refresh
6. `weblate_libraries.yml`: Library Statistics Refresh
- every day, at 12:00/on push to main when corresponding yml/.R file changes
- run `weblate/Library Language Statistics/Library Language Statistics.R` to get statistics per language: `Language Statistics_new.csv` from Weblate
5. `main.yml`: Main Dashboard Refresh
- every day, every 12 hours/on push to main when corresponding yml/index.Rmd file changes
- render `index.Rmd`
- commit with message "CSS updated" and push to main
6. `Slack.yaml`: Slack refresh
- at 19:00 on Friday/on push to main when corresponding yml/.R file changes
- run `Slack/Weblate_Slack.R` to send updates to #gsoc-translations channel on R Contributors Slack (e.g. new contributors)
7. `User Statistics.yml`: User refresh
- run `weblate/Library Language Statistics/Library Language Statistics.R` to get statistics for each component per language: `Library Language Statistics.csv` from Weblate
7. `weblate_recent_changes.yml`: Weblate Recent Changes Refresh
- every day at 12:20/on push to main when corresponding yml/.R file changes
- run `weblate/Recent Changes/Recent changes.R` to get recent changes from Weblate
- commit with message "Updated changes Csv" and push to main
8. `weblate_user_statistics.yml`: User Statistics Refresh
- every day at 12:30/on push to main when corresponding yml/.R file changes
- run `weblate/User Statistics/User_statistics.R` to get statistics per user: `Statistics.csv`
- commit with message "CSS updated" and push to main

(plus pages-build-deployment, currently deploying main branch to GitHub Pages)
(plus pages-build-deployment, currently deploying main branch to GitHub Pages)

## Scheduling

00:00 R SVN Changes
00:10 Main Dashboard Refresh

12:00 Weblate Language Statistics Refresh
12:10 Weblate Library Statistics Refresh
12:20 Weblate Recent Changes Refresh
12:30 Weblate User Statistics Refresh
12:40 Weblate Dashboard Refresh

19:00 on Friday Slack refresh
4 changes: 2 additions & 2 deletions .github/workflows/main_dashboard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ name: Main Dashboard Refresh
on:
workflow_dispatch:
schedule:
- cron: '0 */12 * * *'
- cron: '10 0 * * *'
push:
branches:
- main
paths:
- 'index.Rmd'
- '.github/workflows/main.yml'
- '.github/workflows/main_dashboard.yml'

jobs:
refresh-the-dashboard:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Hourly scraping
name: Creation of CSV
name: R SVN Changes

# Controls when the action will run.
on:
Expand All @@ -8,7 +8,7 @@ on:
branches: main
paths:
- 'translation_status.R'
- '.github/workflows/csv.yml'
- '.github/workflows/r_svn_changes.yml'
schedule:
- cron: '0 0 * * *'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/weblate_dashboard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Weblate Dashboard Refresh
on:
workflow_dispatch:
schedule:
- cron: '0 */12 * * *'
- cron: '40 12 * * *'
push:
branches:
- main
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
name: Languages Statistics Refresh
name: Weblate Language Statistics Refresh

on:
workflow_dispatch:
schedule:
- cron: '10 12 * * *'
- cron: '0 12 * * *'
push:
branches:
- main
paths:
- 'weblate/Language Statisitics/**'
- '.github/workflows/languages.yml'
- '.github/workflows/weblate_languages.yml'
jobs:
Running_R_scripts:
runs-on: ubuntu-20.04
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
name: Library Statistics Refresh
name: Weblate Library Statistics Refresh

on:
workflow_dispatch:
schedule:
- cron: '0 12 * * *'
- cron: '10 12 * * *'
push:
branches:
- main
paths:
- 'weblate/Library Language Statistics/**'
- '.github/workflows/library.yml'
- '.github/workflows/weblate_libraries.yml'
jobs:
Running_R_scripts:
runs-on: ubuntu-20.04
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Recent Changes refresh
name: Weblate Recent Changes Refresh

on:
workflow_dispatch:
Expand All @@ -9,7 +9,7 @@ on:
- main
paths:
- 'weblate/Recent Changes/**'
- '.github/workflows/changes.yml'
- '.github/workflows/weblate_recent_changes.yml'

jobs:
Running_R_scripts:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: User refresh
name: Weblate User Statistics Refresh

on:
workflow_dispatch:
Expand All @@ -9,7 +9,7 @@ on:
- main
paths:
- 'weblate/User Statistics/**'
- '.github/workflows/user_statistics.yml'
- '.github/workflows/weblate_user_statistics.yml'
jobs:
Running_R_scripts:
runs-on: ubuntu-20.04
Expand Down

0 comments on commit be33355

Please sign in to comment.