File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,11 @@ name: run
22on :
33 workflow_call :
44 inputs :
5- command :
5+ commands :
66 type : ' string'
7- description : ' The name of the package.json script to run'
7+ description : |
8+ A JSON array of package.json scripts, e.g.
9+ '["lint","test","types"]'
810 required : true
911 secrets :
1012 BOT_APP_ID :
1517 required : true
1618
1719jobs :
18- build :
20+ run :
1921 if : github.repository_owner == 'bombshell-dev'
2022 runs-on : ubuntu-latest
2123
24+ strategy :
25+ matrix :
26+ command : ${{ fromJson(inputs.commands) }}
27+
2228 steps :
2329 - name : Generate a token
2430 id : bot-token
4551 - name : Install dependencies
4652 run : pnpm install
4753
48- - name : Build
54+ - name : Run ${{ matrix.command }}
4955 run : pnpm run "${{env.COMMAND}}"
5056 env :
51- COMMAND : ${{ inputs .command }}
57+ COMMAND : ${{ matrix .command }}
You can’t perform that action at this time.
0 commit comments