diff --git a/.github/workflows/citation.yml b/.github/workflows/citation.yml index dbec9dd9d..fdab6859e 100644 --- a/.github/workflows/citation.yml +++ b/.github/workflows/citation.yml @@ -4,11 +4,10 @@ on: push: paths: - CITATION.cff - workflow_dispatch: pull_request: paths: - CITATION.cff - workflow_dispatch: + workflow_dispatch: name: CITATION.cff jobs: @@ -17,23 +16,15 @@ jobs: 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@v2 - - # 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 + uses: actions/checkout@v3 - name: Validate CITATION.cff uses: dieghernan/cff-validator@main - - # Upload artifact - - uses: actions/upload-artifact@v2 + # Upload artifact in case of failure + - name: Update artifact + uses: actions/upload-artifact@v3 if: failure() with: name: citation-cff-errors