Skip to content

Merge pull request #3 from PowerGridModel/dependabot/github_actions/a… #5

Merge pull request #3 from PowerGridModel/dependabot/github_actions/a…

Merge pull request #3 from PowerGridModel/dependabot/github_actions/a… #5

Workflow file for this run

# SPDX-FileCopyrightText: Contributors to the Power Grid Model project <powergridmodel@lfenergy.org>
#
# 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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install R
run: |
sudo apt-get update && sudo apt-get install -y r-base
- name: Validate CITATION.cff
uses: dieghernan/cff-validator@d8f85828214016ce6976e740b6e0504c0fdc4dbb # v5.1.1