Skip to content

Commit 322dabe

Browse files
authored
ci: add ecosystem CI (#1296)
1 parent e2dde90 commit 322dabe

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/ecosystem-ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Ecosystem CI
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
branch:
7+
description: 'The branch of the Ecosystem CI run'
8+
required: true
9+
default: 'main'
10+
11+
permissions:
12+
contents: write
13+
issues: write
14+
pull-requests: write
15+
16+
jobs:
17+
ecosystem_ci:
18+
name: Run Ecosystem CI
19+
runs-on: ubuntu-latest
20+
if: github.repository == 'web-infra-dev/rslib'
21+
steps:
22+
- name: Trigger Ecosystem CI
23+
uses: rspack-contrib/rstack-ecosystem-ci/.github/actions/ecosystem_ci_dispatch@main
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.REPO_RSLIB_ECO_CI_GITHUB_TOKEN }}
26+
with:
27+
github-token: ${{ secrets.REPO_RSLIB_ECO_CI_GITHUB_TOKEN }}
28+
ecosystem-owner: web-infra-dev
29+
ecosystem-repo: rslib
30+
workflow-file: rslib-ecosystem-ci-selected.yml
31+
client-payload: '{"ref":"${{ github.event.inputs.branch }}","repo":"web-infra-dev/rslib","suite":"-","suiteRefType":"precoded","suiteRef":"precoded"}'
32+
result-heading: Rslib Ecosystem CI
33+
branch: ${{ github.event.inputs.branch }}

0 commit comments

Comments
 (0)