Skip to content

Commit 4e1d87e

Browse files
targosMoLow
authored andcommitted
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 e605402 commit 4e1d87e

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
@@ -210,16 +239,19 @@ jobs:
210239
rm temp-output
211240
steps:
212241
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
242+
if: github.event_name == 'schedule' || inputs.id == 'all' || inputs.id == matrix.id
213243
with:
214244
persist-credentials: false
215245
- run: ${{ matrix.run }}
246+
if: github.event_name == 'schedule' || inputs.id == 'all' || inputs.id == matrix.id
216247
env:
217248
GITHUB_TOKEN: ${{ secrets.GH_USER_TOKEN }}
218249
- name: Generate commit message if not set
219-
if: ${{ env.COMMIT_MSG == '' }}
250+
if: env.COMMIT_MSG == '' && (github.event_name == 'schedule' || inputs.id == 'all' || inputs.id == matrix.id)
220251
run: |
221252
echo "COMMIT_MSG=${{ matrix.subsystem }}: update ${{ matrix.id }} to ${{ env.NEW_VERSION }}" >> "$GITHUB_ENV"
222253
- uses: gr2m/create-or-update-pull-request-action@77596e3166f328b24613f7082ab30bf2d93079d5
254+
if: github.event_name == 'schedule' || inputs.id == 'all' || inputs.id == matrix.id
223255
# Creates a PR or update the Action's existing PR, or
224256
# no-op if the base branch is already up-to-date.
225257
env:

0 commit comments

Comments
 (0)