Skip to content

Commit fabb6ae

Browse files
committed
Enable auto-update
1 parent 13ccbea commit fabb6ae

File tree

1 file changed

+33
-33
lines changed

1 file changed

+33
-33
lines changed
Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
1-
# name: "Automatically fetch and update the publications of authors when auto_update_publications: true"
2-
# on:
3-
# schedule:
4-
# - cron: '0 8 1,15 * *'
1+
name: "Automatically fetch and update the publications of authors when auto_update_publications: true"
2+
on:
3+
schedule:
4+
- cron: '0 8 1,15 * *'
55

6-
# jobs:
7-
# auto-update-publications:
8-
# runs-on: ubuntu-latest
9-
# steps:
10-
# - uses: actions/checkout@v3
6+
jobs:
7+
auto-update-publications:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v3
1111

12-
# - name: Set up Python
13-
# uses: actions/setup-python@v3
14-
# with:
15-
# python-version: "3.10"
12+
- name: Set up Python
13+
uses: actions/setup-python@v3
14+
with:
15+
python-version: "3.10"
1616

17-
# - name: Install Python requirements
18-
# run: pip install -r src/python/requirements.txt
17+
- name: Install Python requirements
18+
run: pip install -r src/python/requirements.txt
1919

20-
# - name: "Automatically add papers from authors with `auto_update_publications: true`"
21-
# run: python -m src.python.auto_update_publications
22-
# env:
23-
# SEMANTIC_SCHOLAR_API_KEY: ${{ secrets.SEMANTIC_SCHOLAR_API_KEY }}
20+
- name: "Automatically add papers from authors with `auto_update_publications: true`"
21+
run: python -m src.python.auto_update_publications
22+
env:
23+
SEMANTIC_SCHOLAR_API_KEY: ${{ secrets.SEMANTIC_SCHOLAR_API_KEY }}
2424

25-
# - name: Create pull request
26-
# uses: peter-evans/create-pull-request@v4
27-
# with:
28-
# delete-branch: true
29-
# branch-suffix: timestamp
30-
# commit-message: "[GH Actions] Automatically add papers from authors"
31-
# title: "[Automatic PR] Automatically add papers from authors"
32-
# body: >
33-
# Automatically add papers from authors where `auto_update_publications: true`
34-
# in `_data/authors.yml` and that have a valid `semantic_scholar_id`.
35-
# This pull request was automatically created through GitHub Actions.
36-
# branch: "gh-actions/auto-update-publications"
37-
# team-reviewers: >
38-
# @McGill-NLP/maintainers
25+
- name: Create pull request
26+
uses: peter-evans/create-pull-request@v4
27+
with:
28+
delete-branch: true
29+
branch-suffix: timestamp
30+
commit-message: "[GH Actions] Automatically add papers from authors"
31+
title: "[Automatic PR] Automatically add papers from authors"
32+
body: >
33+
Automatically add papers from authors where `auto_update_publications: true`
34+
in `_data/authors.yml` and that have a valid `semantic_scholar_id`.
35+
This pull request was automatically created through GitHub Actions.
36+
branch: "gh-actions/auto-update-publications"
37+
team-reviewers: >
38+
@ComplexData-MILA/maintainers

0 commit comments

Comments
 (0)