Skip to content

Commit 7c552e6

Browse files
committed
tools: add option to run workflow with specific tool id
PR-URL: #47591 Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Tierney Cyren <hello@bnb.im> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 1509312 commit 7c552e6

File tree

1 file changed

+33
-1
lines changed

1 file changed

+33
-1
lines changed

.github/workflows/tools.yml

+33-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,35 @@ on:
55
- cron: 5 0 * * 0
66

77
workflow_dispatch:
8+
inputs:
9+
id:
10+
description: The ID of the job to run
11+
required: true
12+
default: all
13+
type: choice
14+
options:
15+
- all
16+
- acorn
17+
- acorn-walk
18+
- ada
19+
- base64
20+
- brotli
21+
- c-ares
22+
- cjs-module-lexer
23+
- corepack
24+
- doc
25+
- eslint
26+
- libuv
27+
- lint-md-dependencies
28+
- llhttp
29+
- nghttp2
30+
- nghttp3
31+
- ngtcp2
32+
- postject
33+
- root-certificates
34+
- simdutf
35+
- undici
36+
- uvwasi
837

938
permissions:
1039
contents: read
@@ -208,16 +237,19 @@ jobs:
208237
rm temp-output
209238
steps:
210239
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
240+
if: github.event_name == 'schedule' || inputs.id == 'all' || inputs.id == matrix.id
211241
with:
212242
persist-credentials: false
213243
- run: ${{ matrix.run }}
244+
if: github.event_name == 'schedule' || inputs.id == 'all' || inputs.id == matrix.id
214245
env:
215246
GITHUB_TOKEN: ${{ secrets.GH_USER_TOKEN }}
216247
- name: Generate commit message if not set
217-
if: ${{ env.COMMIT_MSG == '' }}
248+
if: env.COMMIT_MSG == '' && (github.event_name == 'schedule' || inputs.id == 'all' || inputs.id == matrix.id)
218249
run: |
219250
echo "COMMIT_MSG=${{ matrix.subsystem }}: update ${{ matrix.id }} to ${{ env.NEW_VERSION }}" >> "$GITHUB_ENV"
220251
- uses: gr2m/create-or-update-pull-request-action@77596e3166f328b24613f7082ab30bf2d93079d5
252+
if: github.event_name == 'schedule' || inputs.id == 'all' || inputs.id == matrix.id
221253
# Creates a PR or update the Action's existing PR, or
222254
# no-op if the base branch is already up-to-date.
223255
env:

0 commit comments

Comments
 (0)