2022-02-06 10:57:35 +01:00
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
# SPDX-FileCopyrightText: 2022 Carles Fernandez-Prades <carles.fernandez@cttc.es>
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths:
|
|
|
|
- CITATION.cff
|
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- CITATION.cff
|
2022-11-27 16:32:19 +01:00
|
|
|
workflow_dispatch:
|
2022-02-06 10:57:35 +01:00
|
|
|
|
|
|
|
name: CITATION.cff
|
|
|
|
jobs:
|
|
|
|
Validate-CITATION-cff:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: Validate CITATION.cff
|
|
|
|
env:
|
|
|
|
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2023-12-13 22:38:01 +01:00
|
|
|
uses: actions/checkout@v4
|
2022-02-06 10:57:35 +01:00
|
|
|
- name: Validate CITATION.cff
|
|
|
|
uses: dieghernan/cff-validator@main
|
2022-11-27 16:32:19 +01:00
|
|
|
# Upload artifact in case of failure
|
|
|
|
- name: Update artifact
|
2024-02-27 16:48:14 +01:00
|
|
|
uses: actions/upload-artifact@v4
|
2022-02-06 10:57:35 +01:00
|
|
|
if: failure()
|
|
|
|
with:
|
|
|
|
name: citation-cff-errors
|
|
|
|
path: citation_cff_errors.md
|