Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Nevoss committed Jul 18, 2024
1 parent 3320327 commit 81b0e1f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 4 additions & 0 deletions actions/log/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}"
1 change: 1 addition & 0 deletions actions/log/dist/index.js
Original file line number Diff line number Diff line change
@@ -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: {
Expand Down
4 changes: 1 addition & 3 deletions actions/log/index.ts
Original file line number Diff line number Diff line change
@@ -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'],
Expand Down

0 comments on commit 81b0e1f

Please sign in to comment.