-
Notifications
You must be signed in to change notification settings - Fork 18
42 lines (40 loc) · 1.05 KB
/
auto-cite.yaml
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
39
40
41
42
name: Auto Cite
on:
push:
branches:
- main
paths:
- "_data/sources.yaml"
- "_data/sources-*.yaml"
- "_data/orcid.yaml"
pull_request:
paths:
- "_data/sources.yaml"
- "_data/sources-*.yaml"
- "_data/orcid.yaml"
# workflow_dispatch:
# schedule:
# - cron: "0 0 * * 1"
jobs:
update_research:
name: Auto Cite
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install packages
run: python -m pip install --upgrade --requirement ./auto-cite/requirements.txt
- name: Build updated citations
run: python ./auto-cite/auto-cite.py
timeout-minutes: 15
- name: Commit updated citations
uses: stefanzweifel/git-auto-commit-action@v4
with:
file_pattern: "_data/citations.yaml"
commit_message: "Generate citations"
push_options: --force