File tree Expand file tree Collapse file tree 4 files changed +11
-8
lines changed Expand file tree Collapse file tree 4 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -271,8 +271,8 @@ with:
271
271
| `artifact-name` | Specify Qodana results artifact name, used for results uploading. Optional. | `qodana-report` |
272
272
| `cache-dir` | Directory to store Qodana cache. Optional. | `${{ runner.temp }}/qodana/caches` |
273
273
| `use-caches` | Utilize [GitHub caches](https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#usage-limits-and-eviction-policy) for Qodana runs. Optional. | `true` |
274
- | `primary-cache-key` | Set [the primary cache key](https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#matching-a-cache-key). Optional. | `qodana-2023.1 -${{ github.ref }}-${{ github.sha }}` |
275
- | `additional-cache-key` | Set [the additional cache key](https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#matching-a-cache-key). Optional. | `qodana-2023.1 -${{ github.ref }}` |
274
+ | `primary-cache-key` | Set [the primary cache key](https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#matching-a-cache-key). Optional. | `qodana-2023.2 -${{ github.ref }}-${{ github.sha }}` |
275
+ | `additional-cache-key` | Set [the additional cache key](https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#matching-a-cache-key). Optional. | `qodana-2023.2 -${{ github.ref }}` |
276
276
| `cache-default-branch-only` | Upload cache for the default branch only. Optional. | `false` |
277
277
| `use-annotations` | Use annotation to mark the results in the GitHub user interface. Optional. | `true` |
278
278
| `pr-mode` | Analyze ONLY changed files in a pull request. Optional. | `true` |
Original file line number Diff line number Diff line change @@ -24,11 +24,11 @@ inputs:
24
24
primary-cache-key :
25
25
description : ' Set the primary cache key'
26
26
required : false
27
- default : " qodana-2023.1-${{ github.ref }}-${{ github.sha }} "
27
+ default : " "
28
28
additional-cache-key :
29
29
description : ' Set the additional cache key'
30
30
required : false
31
- default : " qodana-2023.1-${{ github.ref }} "
31
+ default : " "
32
32
additional-cache-hash :
33
33
description : ' Pass additional cache hash extension'
34
34
required : false
Original file line number Diff line number Diff line change @@ -69166,8 +69166,8 @@ var require_utils8 = __commonJS({
69166
69166
args: core2.getInput("args").split(",").map((arg) => arg.trim()),
69167
69167
resultsDir: core2.getInput("results-dir"),
69168
69168
cacheDir: core2.getInput("cache-dir"),
69169
- primaryCacheKey: core2.getInput("primary-cache-key"),
69170
- additionalCacheKey: core2.getInput("additional-cache-key") || core2.getInput("additional-cache-hash"),
69169
+ primaryCacheKey: core2.getInput("primary-cache-key") || `qodana-${qodana_12.VERSION}-${process.env.GITHUB_REF}-${process.env.GITHUB_SHA}` ,
69170
+ additionalCacheKey: core2.getInput("additional-cache-key") || core2.getInput("additional-cache-hash") || `qodana-${qodana_12.VERSION}-${process.env.GITHUB_REF}}-` ,
69171
69171
cacheDefaultBranchOnly: core2.getBooleanInput("cache-default-branch-only"),
69172
69172
uploadResult: core2.getBooleanInput("upload-result"),
69173
69173
uploadSarif: false,
Original file line number Diff line number Diff line change @@ -54,10 +54,13 @@ export function getInputs(): Inputs {
54
54
. map ( arg => arg . trim ( ) ) ,
55
55
resultsDir : core . getInput ( 'results-dir' ) ,
56
56
cacheDir : core . getInput ( 'cache-dir' ) ,
57
- primaryCacheKey : core . getInput ( 'primary-cache-key' ) ,
57
+ primaryCacheKey :
58
+ core . getInput ( 'primary-cache-key' ) ||
59
+ `qodana-${ VERSION } -${ process . env . GITHUB_REF } -${ process . env . GITHUB_SHA } ` ,
58
60
additionalCacheKey :
59
61
core . getInput ( 'additional-cache-key' ) ||
60
- core . getInput ( 'additional-cache-hash' ) ,
62
+ core . getInput ( 'additional-cache-hash' ) ||
63
+ `qodana-${ VERSION } -${ process . env . GITHUB_REF } }-` ,
61
64
cacheDefaultBranchOnly : core . getBooleanInput ( 'cache-default-branch-only' ) ,
62
65
uploadResult : core . getBooleanInput ( 'upload-result' ) ,
63
66
uploadSarif : false , // not used by the action
You can’t perform that action at this time.
0 commit comments