Skip to content

Commit 7b1281e

Browse files
authored
Specify the retention length for artifacts (microsoft#14395)
Helps keep resource usage down.
1 parent 1370b6d commit 7b1281e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/insiders.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ jobs:
5959
with:
6060
name: ${{env.ARTIFACT_NAME_VSIX}}
6161
path: ${{env.VSIX_NAME}}
62+
retention-days: 7
6263

6364
lint:
6465
name: Lint
@@ -298,10 +299,11 @@ jobs:
298299

299300
# Upload unit test coverage reports for later use in the "reports" job.
300301
- name: Upload unit test coverage reports
301-
uses: actions/upload-artifact@v1
302+
uses: actions/upload-artifact@v2
302303
with:
303304
name: ${{runner.os}}-${{env.COVERAGE_REPORTS}}
304305
path: ${{ env.special-working-directory }}/.nyc_output
306+
retention-days: 1
305307
if: matrix.test-suite == 'ts-unit' && startsWith(matrix.python, 3.)
306308

307309
# Run the Python and IPython tests in our codebase.

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ jobs:
6161
with:
6262
name: ${{ env.ARTIFACT_NAME_VSIX }}
6363
path: ${{ env.VSIX_NAME }}
64+
retention-days: 14
6465

6566
lint:
6667
# Unlike for the insiders build, we skip linting file formatting as that

0 commit comments

Comments
 (0)