Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 15 additions & 5 deletions .github/workflows/data-processing.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Data Processing

# This workflow is triggered daily at midnight and can also be manually triggered.
# It processes data from various scripts and uploads the processed data as an artifact.
# The data is used to update the website's content.

on:
schedule:
- cron: '0 0 * * *' # Daily at midnight
Expand Down Expand Up @@ -27,17 +31,15 @@ jobs:
run: python3 -m pip install -r ./requirements.txt

- name: Run Tenzing script
continue-on-error: true # Continue even if this step fails
run: python3 scripts/forrt_contribs/tenzing.py

- name: Run Google Scholar script
run: python3 scripts/gs-cite/google_scholar.py
env:
SERPAI: ${{ secrets.SERPAPI }}

- name: Run Curated Resources script
continue-on-error: true # Continue even if this step fails
run: python3 content/resources/resource.py

- name: Move and validate Tenzing output
continue-on-error: true # Continue even if this step fails
run: |
mv scripts/forrt_contribs/tenzing.md content/contributors/tenzing.md
if [ ! -f content/contributors/tenzing.md ]; then
Expand All @@ -46,6 +48,7 @@ jobs:
fi

- name: Validate curated resources
continue-on-error: true # Continue even if this step fails
run: |
for file in content/curated_resources/*; do
if [ ! -f "$file" ]; then
Expand All @@ -55,11 +58,18 @@ jobs:
done

- name: Download GA Data
continue-on-error: true # Continue even if this step fails
env:
GA_API_CREDENTIALS: ${{ secrets.GA_API_CREDENTIALS }}
GA_PROPERTY_ID: ${{ secrets.GA_PROPERTY_ID }}
run: python scripts/download_ga_data.py

- name: Run Google Scholar script
continue-on-error: true # Continue even if this step fails
run: python3 scripts/gs-cite/google_scholar.py
env:
SERPAI: ${{ secrets.SERPAPI }}

- name: Upload data artifact
uses: actions/upload-artifact@v4
with:
Expand Down
Loading