From 309f359fa87665105db6357a4c080b409538308e Mon Sep 17 00:00:00 2001 From: kenorb Date: Sun, 11 Feb 2024 23:35:15 +0000 Subject: [PATCH] GHA: Adds inputs.cleanup --- .github/workflows/platform-linux.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/platform-linux.yml b/.github/workflows/platform-linux.yml index e2db9593..58ee51a0 100644 --- a/.github/workflows/platform-linux.yml +++ b/.github/workflows/platform-linux.yml @@ -4,6 +4,7 @@ name: Platform (Linux) env: ARTIFACT_NAME: ${{ inputs.artifact || 'platform' }} CHECKOUT_REF: ${{ inputs.ref || 'dev' }} + CLEANUP: ${{ inputs.cleanup || false }} REPOSITORY: EA31337/EA-Tester VERSION: ${{ inputs.version || 5 }} @@ -25,6 +26,11 @@ on: description: Artifact name required: false type: string + cleanup: + default: false + description: Whether to run clean-up job + required: false + type: boolean ref: default: dev description: The branch, tag or SHA to checkout. @@ -74,6 +80,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: geekyeggo/delete-artifact@v4 - if: not(github.event.inputs.artifact) + if: env.CLEANUP with: name: ${{ env.ARTIFACT_NAME }}