-
Notifications
You must be signed in to change notification settings - Fork 15
36 lines (29 loc) · 979 Bytes
/
run_citations.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
name: Update citations upon CITATION.cff changes
on:
push:
paths:
- CITATION.cff
- '.github/workflows/run_citations.yml'
- '.github/workflows/update_citations.yml'
jobs:
update-citations:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
# use customized version of cffconvert
pip install git+https://github.com/alexlancaster/cffconvert.git@combine_features#egg=cffconvert
call-citation-workflow:
needs: update-citations
uses: ./.github/workflows/update_citations.yml
with:
CITATION_DIR: 'src/PyPop/citation'
INIT_FILE: 'src/PyPop/__init__.py'
secrets: inherit # if any secrets need to be inherited from the calling workflow