diff --git a/.github/workflows/ecosystem-ci.yml b/.github/workflows/ecosystem-ci.yml new file mode 100644 index 000000000..955a24dd6 --- /dev/null +++ b/.github/workflows/ecosystem-ci.yml @@ -0,0 +1,33 @@ +name: Ecosystem CI + +on: + 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: + ecosystem_ci: + name: Run Ecosystem CI + runs-on: ubuntu-latest + if: github.repository == 'web-infra-dev/rslib' + steps: + - name: Trigger Ecosystem CI + uses: rspack-contrib/rstack-ecosystem-ci/.github/actions/ecosystem_ci_dispatch@main + env: + GITHUB_TOKEN: ${{ secrets.REPO_RSLIB_ECO_CI_GITHUB_TOKEN }} + 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"}' + result-heading: Rslib Ecosystem CI + branch: ${{ github.event.inputs.branch }}