3636 env :
3737 PYTHON_VERSION : " 3.11"
3838 steps :
39+ # =======================
40+ # Repository Setup
41+ # =======================
3942 - name : Checkout repository
4043 uses : actions/checkout@v4
4144
45+ # =======================
46+ # Workflow Configuration
47+ # =======================
4248 - name : Check if monthly run
4349 id : monthly-run
4450 run : |
5157 echo "🔄 Monthly run detected - will run contributor analysis"
5258 fi
5359
60+ # =======================
61+ # Environment Setup
62+ # =======================
5463 - name : Configure Git
5564 run : |
5665 git config --global user.email "mudaherarich@gmail.com"
6877 - name : Install tenzing R dependencies
6978 run : Rscript -e 'install.packages(c("rmarkdown","ggplot2", "readxl", "dplyr", "googlesheets4", "stringr", "gridExtra", "glue", "tidygraph", "ggraph", "igraph", "visNetwork"))'
7079
80+ # =======================
81+ # Contributor Analysis (Monthly)
82+ # =======================
7183 - name : Run Contributor Analysis
7284 if : steps.monthly-run.outputs.is_monthly == 'true'
7385 continue-on-error : true # Continue even if this step fails
95107
96108 echo "✅ Contributor analysis complete"
97109
110+ # =======================
111+ # Tenzing Data Processing
112+ # =======================
98113 - name : Install Python dependencies
99114 run : python3 -m pip install -r ./requirements.txt
100115
@@ -125,7 +140,9 @@ jobs:
125140 fi
126141 done
127142
143+ # =======================
128144 # Open Research Games Portal
145+ # =======================
129146 - name : Process Open Research Games Portal data
130147 continue-on-error : true
131148 run : |
@@ -134,6 +151,9 @@ jobs:
134151 cp data/open_research_games.json static/data/ 2>/dev/null || true
135152 fi
136153
154+ # =======================
155+ # Google Analytics Data
156+ # =======================
137157 - name : Download GA Data
138158 continue-on-error : true # Continue even if this step fails
139159 env :
@@ -210,12 +230,18 @@ jobs:
210230 GITHUB_TOKEN : ${{ secrets.FORRT_PAT }}
211231 GH_TOKEN : ${{ secrets.FORRT_PAT }}
212232
233+ # =======================
234+ # Google Scholar Citations
235+ # =======================
213236 - name : Run Google Scholar script
214237 continue-on-error : true
215238 run : python3 scripts/gs-cite/google_scholar.py
216239 env :
217240 SERPAPI : ${{ secrets.SERPAPI }}
218241
242+ # =======================
243+ # Artifact Upload
244+ # =======================
219245 - name : Upload data artifact
220246 id : upload-artifact
221247 uses : actions/upload-artifact@v4
0 commit comments