73 lines
2.8 KiB
YAML
73 lines
2.8 KiB
YAML
name: Re-run
|
|
|
|
on:
|
|
issue_comment:
|
|
types: [created]
|
|
|
|
jobs:
|
|
re-run:
|
|
if: ${{ github.event.issue.pull_request && contains(github.event.comment.body, '/re-run') && github.event.comment.user.login == github.event.issue.user.login }}
|
|
runs-on: [self-hosted, ernie-cpu]
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Rerun all failed jobs
|
|
if: ${{ contains(github.event.comment.body, 'all-failed') }}
|
|
uses: ./.github/actions/rerun-workflow
|
|
with:
|
|
PR_ID: ${{ github.event.issue.number }}
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
OWNER: ${{ github.repository_owner }}
|
|
REPO: ${{ github.event.repository.name }}
|
|
JOB_NAME: 'all-failed'
|
|
|
|
- name: Rerun LLM
|
|
if: ${{ contains(github.event.comment.body, 'LLM') }}
|
|
uses: ./.github/actions/rerun-workflow
|
|
with:
|
|
PR_ID: ${{ github.event.issue.number }}
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
OWNER: ${{ github.repository_owner }}
|
|
REPO: ${{ github.event.repository.name }}
|
|
JOB_NAME: 'LLM CI / llm-ci'
|
|
|
|
- name: Unittest GPU
|
|
if: ${{ contains(github.event.comment.body, 'Unittest GPU') }}
|
|
uses: ./.github/actions/rerun-workflow
|
|
with:
|
|
PR_ID: ${{ github.event.issue.number }}
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
OWNER: ${{ github.repository_owner }}
|
|
REPO: ${{ github.event.repository.name }}
|
|
JOB_NAME: 'Unittest GPU CI / unittest-gpu-ci'
|
|
|
|
- name: Rerun Unittest CPU
|
|
if: ${{ contains(github.event.comment.body, 'Unittest CPU') }}
|
|
uses: ./.github/actions/rerun-workflow
|
|
with:
|
|
PR_ID: ${{ github.event.issue.number }}
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
OWNER: ${{ github.repository_owner }}
|
|
REPO: ${{ github.event.repository.name }}
|
|
JOB_NAME: 'Unittest CPU CI / unit-cpu-ci'
|
|
|
|
- name: Rerun Distribute (V100)
|
|
if: ${{ contains(github.event.comment.body, 'Distribute (V100)') }}
|
|
uses: ./.github/actions/rerun-workflow
|
|
with:
|
|
PR_ID: ${{ github.event.issue.number }}
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
OWNER: ${{ github.repository_owner }}
|
|
REPO: ${{ github.event.repository.name }}
|
|
JOB_NAME: 'Distribute CI (V100)/ distribute-v100-ci'
|
|
|
|
- name: Rerun Codestyle Check
|
|
if: ${{ contains(github.event.comment.body, 'Codestyle Check') }}
|
|
uses: ./.github/actions/rerun-workflow
|
|
with:
|
|
PR_ID: ${{ github.event.issue.number }}
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
OWNER: ${{ github.repository_owner }}
|
|
REPO: ${{ github.event.repository.name }}
|
|
JOB_NAME: 'Codestyle Check / Lint' |