Skip to content

Commit 2b110d8

Browse files
authored
Update run.yml
1 parent 7265368 commit 2b110d8

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/run.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@ name: run
22
on:
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:
@@ -15,10 +17,14 @@ on:
1517
required: true
1618

1719
jobs:
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
@@ -45,7 +51,7 @@ jobs:
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 }}

0 commit comments

Comments
 (0)