Skip to content

Commit 04fdd2e

Browse files
committed
Add retention-days parameter to analysis workflows
1 parent c264c7a commit 04fdd2e

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/public-analyze-code-graph.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,13 @@ on:
4848
required: false
4949
type: string
5050
default: '4096'
51+
retention-days:
52+
description: >
53+
The number of days to keep the uploaded artifacts.
54+
Default: 5
55+
required: false
56+
type: number
57+
default: 5
5158
outputs:
5259
uploaded-analysis-results:
5360
description: >
@@ -72,7 +79,7 @@ jobs:
7279
if: inputs.artifacts-upload-name == '' && inputs.sources-upload-name == ''
7380
run: echo "Please specify either the input parameter 'artifacts-upload-name' or 'sources-upload-name'."; exit 1
7481

75-
- name: Checkout code-graph-analysis-pipeline
82+
- name: (Code Analysis Setup) Checkout code-graph-analysis-pipeline
7683
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
7784
with:
7885
repository: JohT/code-graph-analysis-pipeline
@@ -175,7 +182,7 @@ jobs:
175182
name: ${{ steps.set-analysis-results-artifact-name.outputs.uploaded-analysis-results-artifact-name }}
176183
path: ./temp/${{ inputs.analysis-name }}/reports/*
177184
if-no-files-found: error
178-
retention-days: 5
185+
retention-days: ${{ inputs.retention-days }}
179186

180187

181188
# Upload logs and unfinished analysis-results in case of an error for troubleshooting
@@ -187,7 +194,6 @@ jobs:
187194
path: |
188195
./temp/**/runtime/*
189196
./temp/**/reports/*
190-
retention-days: 5
191197
192198
# Upload Database Export
193199
# Only possible after an export with "./../../scripts/analysis/analyze.sh --report DatabaseCsvExport"

0 commit comments

Comments
 (0)