From 81b0e1f73afd8fedc0652ad8a8eee927b22f4240 Mon Sep 17 00:00:00 2001 From: Nevo Golan <20494189+Nevoss@users.noreply.github.com> Date: Thu, 18 Jul 2024 08:44:01 +0300 Subject: [PATCH] wip --- actions/log/action.yml | 4 ++++ actions/log/dist/index.js | 1 + actions/log/index.ts | 4 +--- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/actions/log/action.yml b/actions/log/action.yml index 4f3b10d..6d4ad4d 100644 --- a/actions/log/action.yml +++ b/actions/log/action.yml @@ -9,6 +9,10 @@ inputs: runs: using: 'composite' steps: + - name: Install ZX + shell: bash + run: npm install zx + - name: Log message shell: bash run: npx zx ./actions/log/dist/index.js --message="${{inputs.message}}" diff --git a/actions/log/dist/index.js b/actions/log/dist/index.js index 1e387e8..9823663 100644 --- a/actions/log/dist/index.js +++ b/actions/log/dist/index.js @@ -1,6 +1,7 @@ #!/usr/bin/env zx // actions/log/index.ts +import { echo, minimist } from "zx"; var args = minimist(process.argv.slice(2), { string: ["message"], default: { diff --git a/actions/log/index.ts b/actions/log/index.ts index 824a377..2c0e0d1 100644 --- a/actions/log/index.ts +++ b/actions/log/index.ts @@ -1,8 +1,6 @@ #!/usr/bin/env zx -// import { echo, minimist } from 'zx'; - -// import 'zx/globals'; +import { echo, minimist } from 'zx'; const args = minimist(process.argv.slice(2), { string: ['message'],