test
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
name: busybox
|
||||
description: "Run busybox commands."
|
||||
inputs:
|
||||
command:
|
||||
#Note: Passing in "args" overwrites the arguments passed into the container directly.
|
||||
args:
|
||||
description: "Shell command to pass into busybox."
|
||||
required: true
|
||||
outputs:
|
||||
@@ -11,4 +12,4 @@ runs:
|
||||
using: docker
|
||||
image: Dockerfile
|
||||
args:
|
||||
- ${{ inputs.command }}
|
||||
- ${{ inputs.args }}
|
||||
@@ -1,13 +1,10 @@
|
||||
name: rockylinux
|
||||
description: "Run rockylinux commands."
|
||||
inputs:
|
||||
command:
|
||||
description: "Shell command to pass into Rocky Linux."
|
||||
#Note: Passing in "args" overwrites the arguments passed into the container directly.
|
||||
args:
|
||||
description: "Shell arguments to pass into Rocky Linux."
|
||||
required: true
|
||||
workingDir:
|
||||
description: "Working directory to execute the commands in."
|
||||
required: true
|
||||
default: "."
|
||||
outputs:
|
||||
console:
|
||||
description: "The console output of the command."
|
||||
@@ -15,4 +12,4 @@ runs:
|
||||
using: docker
|
||||
image: Dockerfile
|
||||
args:
|
||||
- ${{ inputs.workingDir }} ${{ inputs.command }}
|
||||
- ${{ inputs.args }}
|
||||
@@ -1,9 +1,8 @@
|
||||
#!/bin/sh
|
||||
WORKDIR="$1"
|
||||
WORKDIR=${WORKDIR:"."}
|
||||
cd "$WORKDIR"
|
||||
|
||||
ARGS_ARRAY=($@)
|
||||
ARGS=${array[@]:1}
|
||||
ARGS="$@"
|
||||
OUTPUT=$(bash -c "$ARGS")
|
||||
RESULT=$?
|
||||
echo "$OUTPUT"
|
||||
|
||||
Reference in New Issue
Block a user