-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (34 loc) · 965 Bytes
/
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
37
38
# SPDX-FileCopyrightText: Contributors to the Power Grid Model project <[email protected]>
#
# SPDX-License-Identifier: MPL-2.0
name: Validate citation
on:
# run pipeline on push event of main branch, or when CITATIONS path has changed
push:
branches:
- main
paths:
- CITATION.cff
- .github/workflows/citations.yml
pull_request:
paths:
- CITATION.cff
- .github/workflows/citations.yml
# run pipeline from another workflow
workflow_call:
# run this workflow manually from the Actions tab
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-citations
cancel-in-progress: true
jobs:
validate-citations:
runs-on: ubuntu-24.04
steps:
- name: checkout
uses: actions/checkout@v4
- name: Install R
run: |
sudo apt-get update && sudo apt-get install -y r-base
- name: Validate CITATION.cff
uses: dieghernan/cff-validator@v4