From ba6a1fd5f0af69e3008d80355941df068d6f3bcf Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Tue, 13 Oct 2020 17:05:43 -0700 Subject: [PATCH] Specify the retention length for artifacts Helps keep resource usage down. --- .github/workflows/insiders.yml | 4 +++- .github/workflows/release.yml | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/insiders.yml b/.github/workflows/insiders.yml index f129b08204e9..360115fb8a55 100644 --- a/.github/workflows/insiders.yml +++ b/.github/workflows/insiders.yml @@ -59,6 +59,7 @@ jobs: with: name: ${{env.ARTIFACT_NAME_VSIX}} path: ${{env.VSIX_NAME}} + retention-days: 7 lint: name: Lint @@ -298,10 +299,11 @@ jobs: # Upload unit test coverage reports for later use in the "reports" job. - name: Upload unit test coverage reports - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v2 with: name: ${{runner.os}}-${{env.COVERAGE_REPORTS}} path: ${{ env.special-working-directory }}/.nyc_output + retention-days: 1 if: matrix.test-suite == 'ts-unit' && startsWith(matrix.python, 3.) # Run the Python and IPython tests in our codebase. diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index aa0cf36ed886..8f92114d1db5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -61,6 +61,7 @@ jobs: with: name: ${{ env.ARTIFACT_NAME_VSIX }} path: ${{ env.VSIX_NAME }} + retention-days: 14 lint: # Unlike for the insiders build, we skip linting file formatting as that