mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-12-24 13:28:13 +08:00
[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>
This commit is contained in:
28
.github/workflows/ci_metax.yml
vendored
28
.github/workflows/ci_metax.yml
vendored
@@ -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 }}
|
||||
|
||||
@@ -73,7 +73,6 @@ is_excluded() {
|
||||
done
|
||||
return 1
|
||||
}
|
||||
|
||||
# FIND_PATTERN="test_*.py"
|
||||
# declare -a ALL_PATHS=()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user