Skip to content

Commit

Permalink
GHA: Adds inputs.cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kenorb committed Feb 11, 2024
1 parent 6faaa6f commit 309f359
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/platform-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand All @@ -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.
Expand Down Expand Up @@ -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 }}

0 comments on commit 309f359

Please sign in to comment.