From 945a1bc4e281c615f5105cf4dbbcc7cae7bff0df Mon Sep 17 00:00:00 2001 From: MingkunZhang <39252862+StareAtYou@users.noreply.github.com> Date: Tue, 23 Dec 2025 14:00:48 +0800 Subject: [PATCH] [Metax] update ci name (#5679) * [Metax] update ci name * Update CI_METAX workflow for pull request handling * Update ci_metax.yml * Update CI_METAX workflow for pull request handling * Remove commented-out code in run_ci_metax.sh * Add environment to Jenkins trigger job * Change trigger event from pull_request_target to pull_request * Fix environment name casing in CI workflow * Change environment name from Metax-ci to Metax_ci * Modify CI_METAX workflow for PR targeting and concurrency Updated workflow to use pull_request_target event and added concurrency settings. --------- Co-authored-by: Jiaxin Sui <95567040+plusNew001@users.noreply.github.com> --- .github/workflows/ci_metax.yml | 28 +++++++++++++++++++++------- scripts/run_ci_metax.sh | 1 - 2 files changed, 21 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci_metax.yml b/.github/workflows/ci_metax.yml index 426440d8d..ecda881ad 100644 --- a/.github/workflows/ci_metax.yml +++ b/.github/workflows/ci_metax.yml @@ -1,19 +1,33 @@ name: CI_METAX on: - workflow_dispatch: - pull_request: - types: [opened, reopened] + pull_request_target: + types: + - opened + - synchronize + branches: + - develop + - release/** + +permissions: + contents: read + +concurrency: + group: jenkins-pr-${{ github.event.pull_request.number }} + cancel-in-progress: true jobs: - metax-ci-job: + trigger-jenkins: + name: Trigger Jenkins for PR runs-on: ubuntu-latest + environment: Metax_ci + steps: - - name: Trigger jenkins job + - name: Trigger Jenkins job uses: MetaX-MACA/simple-jenkins-githubaction@v1.0 with: job_name: paddle_fastdeploy_metax_smoketest - username: ${{ secrets.METAX_JENKINS_USER }} + username: fastdeploy_builder api_token: ${{ secrets.METAX_JENKINS_API_TOKEN }} pr_num: ${{ github.event.pull_request.number }} - project_branch: "develop" + project_branch: ${{ github.event.pull_request.head.ref }} diff --git a/scripts/run_ci_metax.sh b/scripts/run_ci_metax.sh index d686ad748..705693cb7 100644 --- a/scripts/run_ci_metax.sh +++ b/scripts/run_ci_metax.sh @@ -73,7 +73,6 @@ is_excluded() { done return 1 } - # FIND_PATTERN="test_*.py" # declare -a ALL_PATHS=()