Skip to content

Commit

Permalink
fix: action running via docker
Browse files Browse the repository at this point in the history
  • Loading branch information
simllll committed Nov 17, 2020
1 parent 79fa599 commit bf339c7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
1 change: 0 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
11 changes: 11 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions run.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

require('./dist/index')

0 comments on commit bf339c7

Please sign in to comment.