Skip to content

Commit 8b5c009

Browse files
authored
no matrix (#74803)
1 parent 2d58512 commit 8b5c009

File tree

2 files changed

+17
-8
lines changed

2 files changed

+17
-8
lines changed

.github/workflows/Api-Benchmark-baseline.yml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
is_pr: 'false'
5252

5353
api-benchmark-baseline-schedule:
54-
name: Api benchmark baseline
54+
name: Api benchmark baseline with schedule
5555
strategy:
5656
matrix:
5757
run-labels: [api-bm-20, api-bm-27]
@@ -62,17 +62,26 @@ jobs:
6262
baseline: 'true'
6363
run-labels: ${{ matrix.run-labels }}
6464

65-
api-benchmark-baseline-pr:
66-
name: Api benchmark baseline
65+
api-benchmark-baseline-pr-20:
66+
name: Api benchmark baseline with PR on 20
6767
if: github.event_name == 'workflow_dispatch' && github.event.inputs.job-name == 'api-benchmark'
68-
strategy:
69-
matrix:
70-
run-labels: [api-bm-20, api-bm-27]
7168
uses: ./.github/workflows/_Api-Benchmark.yml
7269
needs: [clone, build-docker]
7370
with:
7471
docker_build_image: ${{ needs.build-docker.outputs.docker_build_image }}
7572
baseline: 'true'
7673
MANUALLY_PR_ID: ${{ inputs.PR_ID }}
7774
MANUALLY_COMMIT_ID: ${{ inputs.COMMIT_ID }}
78-
run-labels: ${{ matrix.run-labels }}
75+
run-labels: api-bm-20
76+
77+
api-benchmark-baseline-pr-27:
78+
name: Api benchmark baseline with PR on 27
79+
if: github.event_name == 'workflow_dispatch' && github.event.inputs.job-name == 'api-benchmark'
80+
uses: ./.github/workflows/_Api-Benchmark.yml
81+
needs: [clone, build-docker]
82+
with:
83+
docker_build_image: ${{ needs.build-docker.outputs.docker_build_image }}
84+
baseline: 'true'
85+
MANUALLY_PR_ID: ${{ inputs.PR_ID }}
86+
MANUALLY_COMMIT_ID: ${{ inputs.COMMIT_ID }}
87+
run-labels: api-bm-27

.github/workflows/_Api-Benchmark.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ env:
3131
PADDLE_ROOT: /paddle
3232
TASK: paddle-CI-${{ github.event.pull_request.number }}-api-benchmark
3333
ci_scripts: /paddle/ci
34-
BRANCH: ${{ github.event.pull_request.base.ref }}
34+
BRANCH: ${{ github.event.pull_request.base.ref || github.ref_name }}
3535
CI_name: api-benchmark
3636
no_proxy: "bcebos.com,apiin.im.baidu.com,gitee.com,aliyun.com,.baidu.com,.tuna.tsinghua.edu.cn"
3737

0 commit comments

Comments
 (0)