diff --git a/action.yml b/action.yml index 54d9149..50b304d 100644 --- a/action.yml +++ b/action.yml @@ -16,6 +16,10 @@ inputs: checks: description: 'Checks to run' default: 'all' + options: + description: 'try-runtime command line options' + default: '' + required: false runs: using: 'docker' image: 'Dockerfile' @@ -23,4 +27,5 @@ runs: - ${{ inputs.url }} - ${{ inputs.snap }} - ${{ inputs.runtime }} - - ${{ inputs.checks }} \ No newline at end of file + - ${{ inputs.checks }} + - ${{ inputs.options }} diff --git a/entrypoint.sh b/entrypoint.sh index 5878608..61cbfdf 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -4,6 +4,7 @@ url=$1 snap=$2 runtime=$3 checks=$4 +shift 4 # if snap does not exists, take it if [ ! -f "$snap" ]; then @@ -11,4 +12,4 @@ if [ ! -f "$snap" ]; then try-runtime --runtime existing create-snapshot --uri $url $snap fi -try-runtime --runtime $runtime on-runtime-upgrade --checks=$checks snap --path $snap \ No newline at end of file +try-runtime --runtime $runtime on-runtime-upgrade --checks=$checks $* snap --path $snap