-
Notifications
You must be signed in to change notification settings - Fork 6
41 lines (38 loc) · 1.15 KB
/
update_citation.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
39
40
41
name: Update CITATION.cff
on:
pull_request:
branches:
- master
paths:
- CITATION.cff
- pyproject.toml
jobs:
update-cff:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v8
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .
pip install pyyaml
- name: Update CITATION.cff
run: |
python bin/update_cff.py
- name: Validate CITATION.cff
uses: dieghernan/cff-validator@main
- name: Commit changes
uses: test-room-7/action-update-file@v1
with:
branch: ${{ steps.branch-name.outputs.current_branch }}
file-path: 'CITATION.cff'
commit-msg: 'Update CITATION.cff'
github-token: ${{ secrets.GITHUB_TOKEN }}