Skip to content

Commit

Permalink
rebaseme: use a proxy action to get the input var
Browse files Browse the repository at this point in the history
  • Loading branch information
asottile committed Oct 13, 2024
1 parent eaeb627 commit 91b5fe8
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .github/actions/internal/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: (internal)
description: (internal)
inputs:
name:
required: true
file:
required: true
runs:
using: node20
main: main.mjs
4 changes: 4 additions & 0 deletions .github/actions/internal/main.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import child_process from 'child_process';

const args = ['dist/index.js', process.env.INPUT_NAME, process.env.INPUT_FILE];
child_process.execFileSync('node', args, {stdio: 'inherit'});
6 changes: 4 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,7 @@ jobs:
node-version: 20.x
- run: npm i
- run: npm run package
- run: node dist/index.js output dist/index.js
name: upload artifact
- uses: .github/actions/internal
with:
name: dist
file: dist/index.js

0 comments on commit 91b5fe8

Please sign in to comment.