test
This commit is contained in:
@@ -1,7 +1,8 @@
|
|||||||
name: busybox
|
name: busybox
|
||||||
description: "Run busybox commands."
|
description: "Run busybox commands."
|
||||||
inputs:
|
inputs:
|
||||||
command:
|
#Note: Passing in "args" overwrites the arguments passed into the container directly.
|
||||||
|
args:
|
||||||
description: "Shell command to pass into busybox."
|
description: "Shell command to pass into busybox."
|
||||||
required: true
|
required: true
|
||||||
outputs:
|
outputs:
|
||||||
@@ -11,4 +12,4 @@ runs:
|
|||||||
using: docker
|
using: docker
|
||||||
image: Dockerfile
|
image: Dockerfile
|
||||||
args:
|
args:
|
||||||
- ${{ inputs.command }}
|
- ${{ inputs.args }}
|
||||||
@@ -1,13 +1,10 @@
|
|||||||
name: rockylinux
|
name: rockylinux
|
||||||
description: "Run rockylinux commands."
|
description: "Run rockylinux commands."
|
||||||
inputs:
|
inputs:
|
||||||
command:
|
#Note: Passing in "args" overwrites the arguments passed into the container directly.
|
||||||
description: "Shell command to pass into Rocky Linux."
|
args:
|
||||||
|
description: "Shell arguments to pass into Rocky Linux."
|
||||||
required: true
|
required: true
|
||||||
workingDir:
|
|
||||||
description: "Working directory to execute the commands in."
|
|
||||||
required: true
|
|
||||||
default: "."
|
|
||||||
outputs:
|
outputs:
|
||||||
console:
|
console:
|
||||||
description: "The console output of the command."
|
description: "The console output of the command."
|
||||||
@@ -15,4 +12,4 @@ runs:
|
|||||||
using: docker
|
using: docker
|
||||||
image: Dockerfile
|
image: Dockerfile
|
||||||
args:
|
args:
|
||||||
- ${{ inputs.workingDir }} ${{ inputs.command }}
|
- ${{ inputs.args }}
|
||||||
@@ -1,9 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
WORKDIR="$1"
|
WORKDIR=${WORKDIR:"."}
|
||||||
cd "$WORKDIR"
|
cd "$WORKDIR"
|
||||||
|
|
||||||
ARGS_ARRAY=($@)
|
ARGS="$@"
|
||||||
ARGS=${array[@]:1}
|
|
||||||
OUTPUT=$(bash -c "$ARGS")
|
OUTPUT=$(bash -c "$ARGS")
|
||||||
RESULT=$?
|
RESULT=$?
|
||||||
echo "$OUTPUT"
|
echo "$OUTPUT"
|
||||||
|
|||||||
@@ -35,4 +35,4 @@ runs:
|
|||||||
- name: "Take ownership of output."
|
- name: "Take ownership of output."
|
||||||
uses: act/common/distros/busybox@master
|
uses: act/common/distros/busybox@master
|
||||||
with:
|
with:
|
||||||
command: chown ${{ steps.ids.outputs.uid }}:${{ steps.ids.outputs.gid }} "${{ inputs.file }}" -R
|
args: chown ${{ steps.ids.outputs.uid }}:${{ steps.ids.outputs.gid }} "${{ inputs.file }}" -R
|
||||||
|
|||||||
@@ -64,4 +64,4 @@ runs:
|
|||||||
uses: act/common/distros/rockylinux@master
|
uses: act/common/distros/rockylinux@master
|
||||||
with:
|
with:
|
||||||
workingDir: ${{ inputs.workingDir }}
|
workingDir: ${{ inputs.workingDir }}
|
||||||
command: ${{ steps.command.outputs.command }}
|
args: ${{ steps.command.outputs.command }}
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ runs:
|
|||||||
id: download
|
id: download
|
||||||
uses: act/common/distros/rockylinux@master
|
uses: act/common/distros/rockylinux@master
|
||||||
with:
|
with:
|
||||||
command: sh "_download.sh" "${{ inputs.url }}" "${{ inputs.outputFile }}"
|
args: sh "_download.sh" "${{ inputs.url }}" "${{ inputs.outputFile }}"
|
||||||
- run: rm _download.sh
|
- run: rm _download.sh
|
||||||
shell: bash
|
shell: bash
|
||||||
- name: "Own artifacts."
|
- name: "Own artifacts."
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ runs:
|
|||||||
id: convert
|
id: convert
|
||||||
uses: act/common/distros/busybox@master
|
uses: act/common/distros/busybox@master
|
||||||
with:
|
with:
|
||||||
command: ${{ steps.command.outputs.command }}
|
args: ${{ steps.command.outputs.command }}
|
||||||
- name: "Delete source."
|
- name: "Delete source."
|
||||||
run: |
|
run: |
|
||||||
if [[ ${{ inputs.deleteSource }} != "true" ]]; then
|
if [[ ${{ inputs.deleteSource }} != "true" ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user