Skip to content

Commit

Permalink
chore(CI): fix eco-ci ref & release checkout branch (#3746)
Browse files Browse the repository at this point in the history
  • Loading branch information
9aoy authored Oct 17, 2024
1 parent 2e3f0e2 commit 87a3918
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/ecosystem-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ on:
merge_group:

workflow_dispatch:
inputs:
branch:
description: 'The branch of the Ecosystem CI run'
required: true
default: 'main'

jobs:
ecosystem_ci_notify:
Expand Down Expand Up @@ -56,5 +61,5 @@ jobs:
repo: "rsbuild-ecosystem-ci"
workflow_file_name: "ecosystem-ci-selected.yml"
github_token: ${{ secrets.REPO_SCOPED_TOKEN }}
ref: ${{ github.event.inputs.branch }}
ref: "main"
client_payload: '{"ref":"${{ github.event.inputs.branch }}","repo":"web-infra-dev/rsbuild","suite":"-","suiteRefType":"precoded","suiteRef":"precoded"}'
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,14 @@ jobs:
repo: "rsbuild-ecosystem-ci"
workflow_file_name: "ecosystem-ci-selected.yml"
github_token: ${{ secrets.REPO_SCOPED_TOKEN }}
ref: ${{ github.event.inputs.branch }}
ref: "main"
client_payload: '{"ref":"${{ github.event.inputs.branch }}","repo":"web-infra-dev/rsbuild","suite":"-","suiteRefType":"precoded","suiteRef":"precoded"}'

- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 25
ref: ${{ github.event.inputs.branch }}

- name: Install Pnpm
run: corepack enable
Expand Down

0 comments on commit 87a3918

Please sign in to comment.