ci: a workflow edit runs that workflow, not the whole matrix #30
This file contains hidden or 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
| name: CITATION.cff | |
| on: | |
| push: | |
| paths: | |
| - CITATION.cff | |
| - ".github/workflows/citation.yml" | |
| pull_request: | |
| paths: | |
| - CITATION.cff | |
| - ".github/workflows/citation.yml" | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| validate-citation-cff: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| name: Validate CITATION.cff | |
| env: | |
| GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
| RSPM: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest" | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| # This is needed for workflows running on | |
| # ubuntu-20.04 or later | |
| - name: Install V8 | |
| if: runner.os == 'Linux' | |
| run: | | |
| sudo apt-get install -y libv8-dev | |
| - name: Validate CITATION.cff | |
| uses: dieghernan/cff-validator@main | |
| # Upload artifact | |
| - uses: actions/upload-artifact@v5 | |
| if: failure() | |
| with: | |
| name: citation-cff-errors | |
| path: citation_cff_errors.md |