Skip to content

fix(create-rslib): support repeatable —tools flag (#1328) #51

fix(create-rslib): support repeatable —tools flag (#1328)

fix(create-rslib): support repeatable —tools flag (#1328) #51

Workflow file for this run

name: Ecosystem CI
on:
push:
# TODO: remove `ci-test` after testing.
branches: ['main', 'ci-test']
workflow_dispatch:
inputs:
branch:
description: 'The branch of the Ecosystem CI run'
required: true
default: 'main'
permissions:
contents: write
issues: write
pull-requests: write
jobs:
changes:
runs-on: ubuntu-latest
if: github.repository == 'web-infra-dev/rslib' && github.event_name != 'workflow_dispatch'
outputs:
changed: ${{ steps.changes.outputs.changed }}
steps:
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 1
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
id: changes
with:
predicate-quantifier: 'every'
filters: |
changed:
- "!**/*.md"
- "!**/*.mdx"
- "!**/_meta.json"
- "!**/dictionary.txt"
ecosystem_ci_dispatch:
name: Dispatch ecosystem CI
runs-on: ubuntu-latest
if: github.repository == 'web-infra-dev/rslib' && github.event_name == 'workflow_dispatch'
steps:
- name: Trigger Ecosystem CI
uses: rspack-contrib/rstack-ecosystem-ci/.github/actions/ecosystem_ci_dispatch@main
with:
github-token: ${{ secrets.REPO_RSLIB_ECO_CI_GITHUB_TOKEN }}
ecosystem-owner: web-infra-dev
ecosystem-repo: rslib
workflow-file: rslib-ecosystem-ci-selected.yml
client-payload: '{"ref":"${{ github.event.inputs.branch }}","repo":"web-infra-dev/rslib","suite":"-","suiteRefType":"precoded","suiteRef":"precoded"}'
branch: ${{ github.event.inputs.branch }}
ecosystem_ci_per_commit:
name: Run ecosystem CI per commit
needs: changes
runs-on: ubuntu-latest
if: github.repository == 'web-infra-dev/rslib' && github.event_name != 'workflow_dispatch' && needs.changes.outputs.changed == 'true'
steps:
- name: Trigger Ecosystem CI
uses: rspack-contrib/rstack-ecosystem-ci/.github/actions/ecosystem_ci_per_commit@main
with:
github-token: ${{ secrets.REPO_RSLIB_ECO_CI_GITHUB_TOKEN }}
ecosystem-owner: web-infra-dev
ecosystem-repo: rslib
workflow-file: rslib-ecosystem-ci-from-commit.yml
client-payload: '{"commitSHA":"${{ github.sha }}","updateComment":true,"repo":"web-infra-dev/rslib","suite":"-","suiteRefType":"precoded","suiteRef":"precoded"}'