From bf339c777cb579594b13d9618c6a4bf6eabaf7ea Mon Sep 17 00:00:00 2001 From: simon Date: Tue, 17 Nov 2020 23:07:24 +0100 Subject: [PATCH] fix: action running via docker --- action.yml | 1 - entrypoint.sh | 11 +++++++++++ run.js | 2 ++ 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 entrypoint.sh create mode 100644 run.js diff --git a/action.yml b/action.yml index 074701dc2..ecb0add7d 100644 --- a/action.yml +++ b/action.yml @@ -9,7 +9,6 @@ inputs: runs: using: docker image: docker://wagoid/commitlint-github-action:2.1.1 - main: 'dist/index.js' branding: icon: 'users' color: 'blue' diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100644 index 000000000..a80ce64c7 --- /dev/null +++ b/entrypoint.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +set -e + +if [ -z "$NODE_PATH" ]; then + export NODE_PATH=/node_modules +else + export NODE_PATH=$NODE_PATH:/node_modules +fi + +node /run.js diff --git a/run.js b/run.js new file mode 100644 index 000000000..80322a774 --- /dev/null +++ b/run.js @@ -0,0 +1,2 @@ + +require('./dist/index')