Skip to content

Commit

Permalink
Merge pull request #4 from NodleCode/patch1
Browse files Browse the repository at this point in the history
Support more try-runtime cmd line options
  • Loading branch information
simonsso authored Dec 4, 2023
2 parents 4d79594 + a32746a commit 490a470
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,16 @@ inputs:
checks:
description: 'Checks to run'
default: 'all'
options:
description: 'try-runtime command line options'
default: ''
required: false
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.url }}
- ${{ inputs.snap }}
- ${{ inputs.runtime }}
- ${{ inputs.checks }}
- ${{ inputs.checks }}
- ${{ inputs.options }}
3 changes: 2 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ url=$1
snap=$2
runtime=$3
checks=$4
shift 4

# if snap does not exists, take it
if [ ! -f "$snap" ]; then
echo "Snapshot does not exist, taking it now..."
try-runtime --runtime existing create-snapshot --uri $url $snap
fi

try-runtime --runtime $runtime on-runtime-upgrade --checks=$checks snap --path $snap
try-runtime --runtime $runtime on-runtime-upgrade --checks=$checks $* snap --path $snap

0 comments on commit 490a470

Please sign in to comment.