Merge pull request #875 from PowerGridModel/dependabot/github_actions… #33
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |