mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-12-24 13:28:13 +08:00
* [CI] Change check-bypass workflow using commit SHA * [CI] Change check-bypass in run_tests_with_coverage
52 lines
1.4 KiB
YAML
52 lines
1.4 KiB
YAML
on:
|
|
workflow_call:
|
|
inputs:
|
|
workflow-name:
|
|
required: true
|
|
type: string
|
|
secrets:
|
|
github-token:
|
|
required: true
|
|
outputs:
|
|
can-skip:
|
|
description: "Whether the workflow can be skipped."
|
|
value: ${{ jobs.check-bypass.outputs.can-skip }}
|
|
|
|
jobs:
|
|
check-bypass:
|
|
name: Check bypass
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
env:
|
|
CI_TEAM_MEMBERS: '["yuanlehome","YuanRisheng","Jiang-Jia-Jun","DDDivano","XieYunshen","EmmonsCurse"]'
|
|
outputs:
|
|
can-skip: ${{ steps.check-bypass.outputs.can-skip }}
|
|
steps:
|
|
- name: Cleanup
|
|
run: |
|
|
rm -rf * .[^.]*
|
|
|
|
- id: check-bypass
|
|
name: Check Bypass
|
|
uses: PFCCLab/ci-bypass@v1
|
|
with:
|
|
github-token: ${{ secrets.github-token }}
|
|
non-pull-request-event-strategy: 'never-skipped'
|
|
type: 'composite'
|
|
composite-rule: |
|
|
{
|
|
"any": [
|
|
{
|
|
"type": "labeled",
|
|
"label": ["skip-ci: ${{ inputs.workflow-name }}", "skip-ci: all"],
|
|
"username": ${{ env.CI_TEAM_MEMBERS }}
|
|
},
|
|
{
|
|
"type": "commented",
|
|
"comment-pattern": [".*/skip-ci ${{ inputs.workflow-name }}.*", ".*/skip-ci all.*"],
|
|
"username": ${{ env.CI_TEAM_MEMBERS }}
|
|
}
|
|
]
|
|
}
|