-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (51 loc) · 1.48 KB
/
lint-cff.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Copyright (C) 2024 Roberto Rossini <[email protected]>
# SPDX-License-Identifier: MIT
name: Lint CITATION.cff
on:
push:
branches: [main]
paths:
- ".github/workflows/lint-cff.yml"
- "CITATION.cff"
pull_request:
paths:
- ".github/workflows/lint-cff.yml"
- "CITATION.cff"
# https://stackoverflow.com/a/72408109
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash
jobs:
lint-cff:
runs-on: ubuntu-latest
name: Lint CITATION.cff
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: CITATION.cff
sparse-checkout-cone-mode: false
- name: Generate DESCRIPTION file
run: |
cat << EOF > DESCRIPTION
Package: hictkpy
Title: What the Package Does (One Line, Title Case)
Version: 0.0.0.9000
Authors@R:
person("First", "Last", , "[email protected]", role = c("aut", "cre"))
Description: What the package does (one paragraph).
License: MIT
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.3.2
Imports:
cffr
EOF
- name: Setup R
uses: r-lib/actions/setup-r@v2
- name: Add requirements
uses: r-lib/actions/setup-r-dependencies@v2
- name: Lint CITATION.cff
run: Rscript -e 'cffr::cff_validate("CITATION.cff")'