Skip to content

Commit 91b5fe8

Browse files
committed
rebaseme: use a proxy action to get the input var
1 parent eaeb627 commit 91b5fe8

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: (internal)
2+
description: (internal)
3+
inputs:
4+
name:
5+
required: true
6+
file:
7+
required: true
8+
runs:
9+
using: node20
10+
main: main.mjs

.github/actions/internal/main.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import child_process from 'child_process';
2+
3+
const args = ['dist/index.js', process.env.INPUT_NAME, process.env.INPUT_FILE];
4+
child_process.execFileSync('node', args, {stdio: 'inherit'});

.github/workflows/main.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,7 @@ jobs:
1313
node-version: 20.x
1414
- run: npm i
1515
- run: npm run package
16-
- run: node dist/index.js output dist/index.js
17-
name: upload artifact
16+
- uses: .github/actions/internal
17+
with:
18+
name: dist
19+
file: dist/index.js

0 commit comments

Comments
 (0)