From 654c9cade1e960321a7aede94d5eb0fafb69ccad Mon Sep 17 00:00:00 2001 From: Julian Gruber Date: Mon, 18 Nov 2019 10:50:13 +0100 Subject: [PATCH] fix input names --- .github/workflows/ci.yml | 4 ++++ index.js | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d59b30a..aee290d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,6 +6,10 @@ jobs: steps: - name: Checkout uses: actions/checkout@v1 + - name: Build + run: | + npm ci + npm run build - name: Render markdown uses: ./ id: markdown diff --git a/index.js b/index.js index 5343bc4..93f1d43 100644 --- a/index.js +++ b/index.js @@ -8,7 +8,7 @@ const getAllInputs = () => { for (const [key, value] of Object.entries(process.env)) { if (key.startsWith('INPUT')) { const segs = key.split('_').slice(1) - const inputName = segs.join(' ').toLowerCase() + const inputName = segs.join('_').toLowerCase() inputs[inputName] = value.trim() } }