-
-
Notifications
You must be signed in to change notification settings - Fork 0
84 lines (69 loc) · 2.28 KB
/
citation-validation.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: Citation Validation
on:
push:
branches-ignore:
- 'dependabot/**'
paths:
- 'CITATION.cff'
pull_request:
branches:
- '**'
paths:
- 'CITATION.cff'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions: read-all
jobs:
get-ruby-version:
name: Get Latest Ruby Version
runs-on: ubuntu-latest
outputs:
version: ${{ steps.get-language-versions.outputs.latest-versions }}
steps:
- name: Get Required Version
uses: ActionsToolbox/get-language-versions-action@446919617fd774095b5dd3ed71c39dd3fd0d8f4f # v0.1.3
id: get-language-versions
with:
language: "ruby"
highest-only: true
remove-patch-version: true
awesomebot:
name: Awesomebot
needs: get-ruby-version
runs-on: ubuntu-latest
steps:
- name: Checkout the Repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup Ruby ${{ needs.get-ruby-version.outputs.version }}
uses: ruby/setup-ruby@a2bbe5b1b236842c1cb7dd11e8e3b51e0a616acc # v1.202.0
with:
ruby-version: ${{ needs.get-ruby-version.outputs.version }}
- name: Perform Awesomebot Analysis
env:
FLAGS: "default"
WHITELIST: "https://img.shields.io"
INCLUDE_FILES: "CITATION.cff"
run: bash <(curl -s https://raw.githubusercontent.com/CICDToolbox/awesomebot/master/pipeline.sh)
validate-citation-file:
name: Validate CITATION.cff
runs-on: ubuntu-latest
steps:
- name: Checkout the Repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Validate CITATION.cff
uses: citation-file-format/cffconvert-github-action@4cf11baa70a673bfdf9dad0acc7ee33b3f4b6084 # v2.0.0
with:
args: "--validate"
citation-validation-pipeline:
if: always()
name: Citation Validation Pipeline
needs:
- awesomebot
- validate-citation-file
runs-on: ubuntu-latest
steps:
- name: Checkout the Repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Check Job Statuses
run: .github/scripts/check-jobs.sh '${{ toJson(needs) }}'