Skip to content

Commit

Permalink
[check-r-package]: allow upload-results: never
Browse files Browse the repository at this point in the history
To never upload the results, not even on failure.
  • Loading branch information
gaborcsardi committed Mar 8, 2024
1 parent 0ed4cdf commit 1d38e19
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions check-r-package/action.yaml
Expand Up @@ -21,7 +21,9 @@ inputs:
description: 'Whether to upload all testthat snapshots as an artifact.'
default: false
upload-results:
description: 'Whether to upload check results for successful runs too.'
description: |
Whether to upload check results for successful runs too. If 'never',
then it does not upload the results, even on failure.
default: false
artifact-name:
description: |
Expand Down Expand Up @@ -57,7 +59,7 @@ runs:
working-directory: ${{ inputs.working-directory }}

- name: Upload check results
if: failure() || inputs.upload-results != 'false'
if: (failure() && inputs.upload-results != 'never') || inputs.upload-results != 'false'
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.artifact-name || format('{0}-{1}-r{2}-{3}-results', runner.os, runner.arch, matrix.config.r, matrix.config.id || strategy.job-index ) }}
Expand Down

0 comments on commit 1d38e19

Please sign in to comment.