From ef107e1d4b022fb1578a427b4077552d1dbd0955 Mon Sep 17 00:00:00 2001 From: Stefan Zweifel Date: Tue, 11 Feb 2020 20:50:33 +0100 Subject: [PATCH] Switch Action to use node12 --- action.yml | 4 ++-- index.js | 13 +++++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 index.js diff --git a/action.yml b/action.yml index 4988a84..f6b6077 100644 --- a/action.yml +++ b/action.yml @@ -36,8 +36,8 @@ inputs: default: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> runs: - using: 'docker' - image: 'Dockerfile' + using: 'node12' + main: 'index.js' branding: icon: 'git-commit' diff --git a/index.js b/index.js new file mode 100644 index 0000000..abba6b7 --- /dev/null +++ b/index.js @@ -0,0 +1,13 @@ +const core = require('@actions/core'); +const exec = require('@actions/exec'); + +async function run() { + try { + await exec.exec('sh', ['entrypoint.sh']); + } + catch (error) { + core.setFailed(error.message); + } +} + +run()