Skip to content
Open
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 .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,5 @@ dist

# TernJS port file
.tern-port

.history
14 changes: 14 additions & 0 deletions pre-release/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM node:alpine

RUN apk add yarn

RUN yarn global add @knit/knit

LABEL com.github.actions.name="knit"
LABEL com.github.actions.description="A simple GitHub Action to use knit"
LABEL com.github.actions.icon="package"
LABEL com.github.actions.color="purple"

COPY entrypoint.sh /entrypoint.sh

ENTRYPOINT ["/entrypoint.sh"]
15 changes: 15 additions & 0 deletions pre-release/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: 'Hello World'
description: 'Greet someone and record the time'
inputs:
who-to-greet: # id of input
description: 'Who to greet'
required: false
default: 'World'
outputs:
time: # id of output
description: 'The time we greeted you'
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.who-to-greet }}
10 changes: 10 additions & 0 deletions pre-release/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh -l

set -eu

echo "Hello $1"
knit list
knit exec --parallel npm version KNIT_MODULE_VERSION --no-git-tag-version
knit list
time=$(date)
echo ::set-output name=time::$time