diff options
author | Michaël Zasso <targos@protonmail.com> | 2023-04-19 11:29:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-19 09:29:11 +0000 |
commit | 4f0e1925adeff2555d2364223ca882118c07739e (patch) | |
tree | 6ba7ff51652811b18759620efe09a0df48f8df51 /.github/workflows | |
parent | 8f879ded4e860f3fbb401c09c61c70a6b17a5f1c (diff) | |
download | node-new-4f0e1925adeff2555d2364223ca882118c07739e.tar.gz |
tools: add option to run workflow with specific tool id
PR-URL: https://github.com/nodejs/node/pull/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>
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/tools.yml | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/.github/workflows/tools.yml b/.github/workflows/tools.yml index b4f8847679..199b06b4a5 100644 --- a/.github/workflows/tools.yml +++ b/.github/workflows/tools.yml @@ -5,6 +5,35 @@ on: - cron: 5 0 * * 0 workflow_dispatch: + inputs: + id: + description: The ID of the job to run + required: true + default: all + type: choice + options: + - all + - acorn + - acorn-walk + - ada + - base64 + - brotli + - c-ares + - cjs-module-lexer + - corepack + - doc + - eslint + - libuv + - lint-md-dependencies + - llhttp + - nghttp2 + - nghttp3 + - ngtcp2 + - postject + - root-certificates + - simdutf + - undici + - uvwasi permissions: contents: read @@ -208,16 +237,19 @@ jobs: rm temp-output steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 + if: github.event_name == 'schedule' || inputs.id == 'all' || inputs.id == matrix.id with: persist-credentials: false - run: ${{ matrix.run }} + if: github.event_name == 'schedule' || inputs.id == 'all' || inputs.id == matrix.id env: GITHUB_TOKEN: ${{ secrets.GH_USER_TOKEN }} - name: Generate commit message if not set - if: ${{ env.COMMIT_MSG == '' }} + if: env.COMMIT_MSG == '' && (github.event_name == 'schedule' || inputs.id == 'all' || inputs.id == matrix.id) run: | echo "COMMIT_MSG=${{ matrix.subsystem }}: update ${{ matrix.id }} to ${{ env.NEW_VERSION }}" >> "$GITHUB_ENV" - uses: gr2m/create-or-update-pull-request-action@77596e3166f328b24613f7082ab30bf2d93079d5 + if: github.event_name == 'schedule' || inputs.id == 'all' || inputs.id == matrix.id # Creates a PR or update the Action's existing PR, or # no-op if the base branch is already up-to-date. env: |