Skip to content

Commit

Permalink
make clean flag optional
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanneryan committed May 16, 2024
1 parent 37358f6 commit 9b1a9e5
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ inputs:
required: false
default: 0

clean:
description: >
Build with the clean flag.
required: false
default: true

runs:
using: composite
steps:
Expand Down Expand Up @@ -118,7 +124,13 @@ runs:
- name: Run Primary Build
shell: bash
working-directory: ${{ inputs.work_dir }}
run: $RUN_CLI build -clean -json
run: |
if [ "${CLEAN}" == "false"] ; then
$RUN_CLI build -json
else
$RUN_CLI build -clean -json
env:
CLEAN: ${{ inputs.clean }}

# Upload Primary Build
- name: Upload Primary Zip
Expand Down

0 comments on commit 9b1a9e5

Please sign in to comment.