|
20 | 20 | env: |
21 | 21 | PYTHON_VERSION: "3.11" |
22 | 22 | steps: |
| 23 | + # ======================= |
| 24 | + # Repository Setup |
| 25 | + # ======================= |
23 | 26 | - name: Checkout repository |
24 | 27 | uses: actions/checkout@v4 |
25 | 28 |
|
| 29 | + # ======================= |
| 30 | + # Workflow Configuration |
| 31 | + # ======================= |
26 | 32 | - name: Check if monthly run |
27 | 33 | id: monthly-run |
28 | 34 | run: | |
|
35 | 41 | echo "🔄 Monthly run detected - will run contributor analysis" |
36 | 42 | fi |
37 | 43 |
|
| 44 | + # ======================= |
| 45 | + # Environment Setup |
| 46 | + # ======================= |
38 | 47 | - name: Configure Git |
39 | 48 | run: | |
40 | 49 | git config --global user.email "mudaherarich@gmail.com" |
|
52 | 61 | - name: Install tenzing R dependencies |
53 | 62 | run: Rscript -e 'install.packages(c("rmarkdown","ggplot2", "readxl", "dplyr", "googlesheets4", "stringr", "gridExtra", "glue", "tidygraph", "ggraph", "igraph", "visNetwork"))' |
54 | 63 |
|
| 64 | + # ======================= |
| 65 | + # Contributor Analysis (Monthly) |
| 66 | + # ======================= |
55 | 67 | - name: Run Contributor Analysis |
56 | 68 | if: steps.monthly-run.outputs.is_monthly == 'true' |
57 | 69 | continue-on-error: true # Continue even if this step fails |
|
79 | 91 | |
80 | 92 | echo "✅ Contributor analysis complete" |
81 | 93 |
|
| 94 | + # ======================= |
| 95 | + # Tenzing Data Processing |
| 96 | + # ======================= |
82 | 97 | - name: Install Python dependencies |
83 | 98 | run: python3 -m pip install -r ./requirements.txt |
84 | 99 |
|
@@ -109,6 +124,9 @@ jobs: |
109 | 124 | fi |
110 | 125 | done |
111 | 126 |
|
| 127 | + # ======================= |
| 128 | + # Google Analytics Data |
| 129 | + # ======================= |
112 | 130 | - name: Download GA Data |
113 | 131 | continue-on-error: true # Continue even if this step fails |
114 | 132 | env: |
@@ -185,12 +203,18 @@ jobs: |
185 | 203 | GITHUB_TOKEN: ${{ secrets.FORRT_PAT }} |
186 | 204 | GH_TOKEN: ${{ secrets.FORRT_PAT }} |
187 | 205 |
|
| 206 | + # ======================= |
| 207 | + # Google Scholar Citations |
| 208 | + # ======================= |
188 | 209 | - name: Run Google Scholar script |
189 | 210 | continue-on-error: true |
190 | 211 | run: python3 scripts/gs-cite/google_scholar.py |
191 | 212 | env: |
192 | 213 | SERPAPI: ${{ secrets.SERPAPI }} |
193 | 214 |
|
| 215 | + # ======================= |
| 216 | + # Artifact Upload |
| 217 | + # ======================= |
194 | 218 | - name: Upload data artifact |
195 | 219 | id: upload-artifact |
196 | 220 | uses: actions/upload-artifact@v4 |
|
0 commit comments