use json
This commit is contained in:
@@ -3,7 +3,7 @@ description: "Remove leftover or outdated assets from repository"
|
|||||||
|
|
||||||
inputs:
|
inputs:
|
||||||
all_skins:
|
all_skins:
|
||||||
description: "Newline-delimited list of all skins"
|
description: "JSON array of all skins"
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
@@ -15,7 +15,7 @@ runs:
|
|||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
echo "[Cleanup Extra Files Started]"
|
echo "[Cleanup Extra Files Started]"
|
||||||
|
|
||||||
readarray -t skins <<< "${{ inputs.all_skins }}"
|
readarray -t skins < <(echo '${{ inputs.all_skins }}' | jq -r '.[]')
|
||||||
|
|
||||||
[ -f how-to-use.md ] && rm -f -- how-to-use.md
|
[ -f how-to-use.md ] && rm -f -- how-to-use.md
|
||||||
[ -f src/replay.osr ] && rm -f -- src/replay.osr
|
[ -f src/replay.osr ] && rm -f -- src/replay.osr
|
||||||
|
|||||||
Reference in New Issue
Block a user