From 81f119483401ffde8275edf4c089b42e24b92cf4 Mon Sep 17 00:00:00 2001 From: Brian Espinosa Date: Fri, 17 Nov 2023 06:54:13 -0800 Subject: [PATCH] feat: enable artifact retention days (#88) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: enable artifact retention days * docs: bump version in readme --------- Co-authored-by: Miroslav Jonaš --- .github/workflows/nx-cloud-main.yml | 5 +++++ README.md | 18 ++++++++++++------ package.json | 2 +- 3 files changed, 18 insertions(+), 7 deletions(-) diff --git a/.github/workflows/nx-cloud-main.yml b/.github/workflows/nx-cloud-main.yml index 3dcf15a..710bdb5 100644 --- a/.github/workflows/nx-cloud-main.yml +++ b/.github/workflows/nx-cloud-main.yml @@ -59,6 +59,10 @@ on: required: false type: string default: "nx-main-artifacts" + artifacts-retention-days: + required: false + type: number + default: 90 working-directory: required: false type: string @@ -367,3 +371,4 @@ jobs: with: name: ${{ inputs.artifacts-name }} path: ${{ inputs.artifacts-path }} + retention-days: ${{ inputs.artifacts-retention-days }} diff --git a/README.md b/README.md index 08dee3e..d313dc9 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,7 @@ concurrency: jobs: main: name: Nx Cloud - Main Job - uses: nrwl/ci/.github/workflows/nx-cloud-main.yml@v0.13.2 + uses: nrwl/ci/.github/workflows/nx-cloud-main.yml@v0.14.0 with: # NOTE: Here we are using the special `nx-cloud record` command to ensure that any commands we run that do not go through the cloud task runner natively # (i.e. anything that starts with `nx run`/`nx run-many`/`nx affected --target`), are still captured in the Nx Cloud UI and Github App comment for @@ -74,7 +74,7 @@ jobs: agents: name: Nx Cloud - Agents - uses: nrwl/ci/.github/workflows/nx-cloud-agents.yml@v0.13.2 + uses: nrwl/ci/.github/workflows/nx-cloud-agents.yml@v0.14.0 with: number-of-agents: 3 ``` @@ -109,7 +109,7 @@ concurrency: jobs: main: name: Nx Cloud - Main Job - uses: nrwl/ci/.github/workflows/nx-cloud-main.yml@v0.13.2 + uses: nrwl/ci/.github/workflows/nx-cloud-main.yml@v0.14.0 secrets: NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} NX_CLOUD_AUTH_TOKEN: ${{ secrets.NX_CLOUD_AUTH_TOKEN }} @@ -117,7 +117,7 @@ jobs: agents: name: Nx Cloud - Agents - uses: nrwl/ci/.github/workflows/nx-cloud-agents.yml@v0.13.2 + uses: nrwl/ci/.github/workflows/nx-cloud-agents.yml@v0.14.0 secrets: NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} NX_CLOUD_AUTH_TOKEN: ${{ secrets.NX_CLOUD_AUTH_TOKEN }} @@ -133,7 +133,7 @@ See the annotated configuration below for all explicitly supported secret values ```yaml -- uses: nrwl/ci/.github/workflows/nx-cloud-main.yml@v0.13.2 +- uses: nrwl/ci/.github/workflows/nx-cloud-main.yml@v0.14.0 # [OPTIONAL] Explicitly supported secret values which can be passed into the workflow from your outer workflow run. # # NOTE: You cannot access values from ${{ secrets }} beyond what is explicitly specified here because of the limitations of reusable Github workflows @@ -239,6 +239,12 @@ See the annotated configuration below for all explicitly supported secret values # NOTE: This input only has an effect if used with the `artifacts-path` input. # Default: "nx-main-artifacts" artifacts-name: "" + + # [OPTIONAL] The number of days artifacts will be retained. + # + # NOTE: This input only has an effect if used with the `artifacts-path` input. + # Default: 90 + artifacts-retention-days: "" # [OPTIONAL] If you want to override GitHub's default timeout provide a timeout expressed in minutes. # @@ -258,7 +264,7 @@ See the annotated configuration below for all explicitly supported secret values ```yaml -- uses: nrwl/ci/.github/workflows/nx-cloud-agents.yml@v0.13.2 +- uses: nrwl/ci/.github/workflows/nx-cloud-agents.yml@v0.14.0 # [OPTIONAL] Explicitly supported secret values which can be passed into the workflow from your outer workflow run. # # NOTE: You cannot access values from ${{ secrets }} beyond what is explicitly specified here because of the limitations of reusable Github workflows diff --git a/package.json b/package.json index 9354b33..7ee3b89 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { "private": true, - "version": "0.13.3", + "version": "0.14.0", "description": "This package.json is here purely to control the version of the Action, in combination with https://github.com/JamesHenry/publish-shell-action" }