run sync_openalex_affiliations_github_issues.py #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: run sync_openalex_affiliations_github_issues.py | |
on: | |
schedule: | |
- cron: "0 2 * * *" # Every day at 2 AM | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo content | |
uses: actions/checkout@v4 | |
- name: Setup python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" # install the python version needed | |
- name: Install python packages | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Run python script # run sync_openalex_affiliations_github_issues.py | |
env: | |
GIT_TOKEN: ${{ secrets.GIT_TOKEN }} | |
GIT_USERNAME: ${{ secrets.GIT_USERNAME }} | |
ODS_API_KEY: ${{ secrets.ODS_API_KEY }} | |
run: python sync_openalex_affiliations_github_issues.py | |