forked from McGill-NLP/mcgill-nlp.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (33 loc) · 1.39 KB
/
auto-update-publications.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: "Automatically fetch and update the publications of authors when auto_update_publications: true"
on:
schedule:
- cron: '0 8 1,15 * *'
jobs:
auto-update-publications:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install Python requirements
run: pip install -r src/python/requirements.txt
- name: "Automatically add papers from authors with `auto_update_publications: true`"
run: python -m src.python.auto_update_publications
env:
SEMANTIC_SCHOLAR_API_KEY: ${{ secrets.SEMANTIC_SCHOLAR_API_KEY }}
- name: Create pull request
uses: peter-evans/create-pull-request@v4
with:
delete-branch: true
branch-suffix: timestamp
commit-message: "[GH Actions] Automatically add papers from authors"
title: "[Automatic PR] Automatically add papers from authors"
body: >
Automatically add papers from authors where `auto_update_publications: true`
in `_data/authors.yml` and that have a valid `semantic_scholar_id`.
This pull request was automatically created through GitHub Actions.
branch: "gh-actions/auto-update-publications"
team-reviewers: >
@ComplexData-MILA/maintainers