Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
robzr committed Mar 22, 2024
1 parent edbcbf7 commit a5d5101
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@ inputs:
description: sver (https://github.com/robzr/sver) command and arguments.
required: false
input:
default: ''
description: List of input versions, used with filter, max, min, or sort commands.
required: false
input-command:
default: ''
description: Command to be run, the output will be used in place of the input variable.
required: false

Expand All @@ -33,6 +31,7 @@ runs:
id: run
run: |
# run sver
set -x
mkdir -p "${SVER_BIN%/*}"
cat >"$SVER_BIN" <<'#action-sver-end' #action-sver-begin
#!/bin/bash
Expand Down Expand Up @@ -740,7 +739,7 @@ runs:
OUTPUT_FILE=$(mktemp)
RETURN_VALUE='true'
cat "$INPUTFILE" | "$SVER_BIN" ${{ inputs.command }} >"${OUTPUT_FILE}" || RETURN_VALUE=false
cat "$INPUT_FILE" | "$SVER_BIN" ${{ inputs.command }} >"${OUTPUT_FILE}" || RETURN_VALUE=false
if [ $(wc -c < "$OUTPUT_FILE") -eq 0 ] ; then
echo "output=${RETURN_VALUE}" >>"${GITHUB_OUTPUT}"
Expand Down

0 comments on commit a5d5101

Please sign in to comment.