Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ const run = async () => {
try {
const version = core.getInput('version')
await exec(path.join(__dirname, 'install-jsonnet.sh'), version)

await exec(path.join(__dirname, 'install-sjsonnet.sh'), '0.4.3')
} catch (error) {
core.setFailed(`Action failed with error: ${error}`)
}
Expand Down
9 changes: 9 additions & 0 deletions install-sjsonnet.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash -ex
SJSONNET=${SJSONNET:-sjsonnet}

# Install https://github.com/databricks/sjsonnet
version="${1:-0.4.3}"

curl -L "https://github.com/databricks/sjsonnet/releases/download/${version}/sjsonnet.jar" > "$SJSONNET"

chmod +x "$SJSONNET"