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
|
name: CI_METAX
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
pull_request_target:
|
||||||
pull_request:
|
types:
|
||||||
types: [opened, reopened]
|
- opened
|
||||||
|
- synchronize
|
||||||
|
branches:
|
||||||
|
- develop
|
||||||
|
- release/**
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: jenkins-pr-${{ github.event.pull_request.number }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
metax-ci-job:
|
trigger-jenkins:
|
||||||
|
name: Trigger Jenkins for PR
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
environment: Metax_ci
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Trigger jenkins job
|
- name: Trigger Jenkins job
|
||||||
uses: MetaX-MACA/simple-jenkins-githubaction@v1.0
|
uses: MetaX-MACA/simple-jenkins-githubaction@v1.0
|
||||||
with:
|
with:
|
||||||
job_name: paddle_fastdeploy_metax_smoketest
|
job_name: paddle_fastdeploy_metax_smoketest
|
||||||
username: ${{ secrets.METAX_JENKINS_USER }}
|
username: fastdeploy_builder
|
||||||
api_token: ${{ secrets.METAX_JENKINS_API_TOKEN }}
|
api_token: ${{ secrets.METAX_JENKINS_API_TOKEN }}
|
||||||
pr_num: ${{ github.event.pull_request.number }}
|
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
|
done
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
# FIND_PATTERN="test_*.py"
|
# FIND_PATTERN="test_*.py"
|
||||||
# declare -a ALL_PATHS=()
|
# declare -a ALL_PATHS=()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user