Skip to content

Commit

Permalink
Adds artifact_overwrite workflow input
Browse files Browse the repository at this point in the history
  • Loading branch information
kenorb committed Feb 17, 2024
1 parent fd0a217 commit 589ad28
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/platform-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Platform (Linux)

env:
ARTIFACT_NAME: ${{ inputs.artifact || 'platform' }}
ARTIFACT_OVERWRITE: ${{ inputs.artifact_overwrite || false }}
CHECKOUT_REF: ${{ inputs.ref || 'dev' }}
CLEANUP: ${{ inputs.cleanup || true }}
REPOSITORY: EA31337/EA-Tester
Expand All @@ -23,12 +24,17 @@ on:
inputs:
artifact:
default: platform
description: Artifact name
description: Artifact name.
required: false
type: string
artifact_overwrite:
default: false
description: Whether to overwrite artifact.
required: false
type: boolean
cleanup:
default: false
description: Whether to run clean-up job
description: Whether to run clean-up job.
required: false
type: boolean
ref:
Expand All @@ -38,7 +44,7 @@ on:
type: string
version:
default: 5
description: Version to install
description: Version to install.
type: number

jobs:
Expand Down Expand Up @@ -82,3 +88,4 @@ jobs:
if: env.CLEANUP && github.repository == env.REPOSITORY
with:
name: ${{ env.ARTIFACT_NAME }}
overwrite: ${{ env.ARTIFACT_OVERWRITE }}

0 comments on commit 589ad28

Please sign in to comment.