Skip to content

Get Citation Data

Get Citation Data #45

name: Get Citation Data
on:
page_build:
schedule:
- cron: '0 8 * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Reqs
run: |
sudo apt-get install python3-setuptools
- name: Run
run: |
cd ./google_scholar_crawler
pip3 install -r requirements.txt
python3 main.py
cd ./results
git init
git config --local user.email "[email protected]"
git config --local user.name "Li-Jinsong"
export remote_repo="https://${GITHUB_ACTOR}:${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git"
git add *.json
git commit -m "Updated Citation Data"
git push "${remote_repo}" HEAD:google-scholar-stats --force
env:
GOOGLE_SCHOLAR_ID: ${{ secrets.GOOGLE_SCHOLAR_ID }}