Skip to content

Commit

Permalink
y
Browse files Browse the repository at this point in the history
  • Loading branch information
hahwul committed May 29, 2022
1 parent 149b102 commit 4e28cfb
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
17 changes: 17 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: 'Zest CLI'
description: 'Zest CLI in Github action'
branding:
icon: 'terminal'
color: 'red'
inputs:
script:
description: 'Zest script data'
required: true
outputs:
output:
description: 'CLI Output'
runs:
using: 'docker'
image: 'github-action/Dockerfile'
args:
- ${{ inputs.script }}
3 changes: 3 additions & 0 deletions github-action/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM ghcr.io/hahwul/zest-env:v1.0.0
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
5 changes: 5 additions & 0 deletions github-action/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh -l

echo "$1" > /input.zst
out=$(/usr/bin/zest -script /input.zst)
echo "::set-output name=output::$out"

0 comments on commit 4e28cfb

Please sign in to comment.