Skip to content

Commit 30baea4

Browse files
authored
[CI] Skip some workflows on forked repositories (#78713)
1 parent d53a047 commit 30baea4

5 files changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/Approval.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ env:
1414
jobs:
1515
check-bypass:
1616
name: Check bypass
17+
if: ${{ github.repository_owner == 'PaddlePaddle' }}
1718
uses: ./.github/workflows/check-bypass.yml
1819
with:
1920
workflow-name: 'approval'

.github/workflows/CheckPRTemplate.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
jobs:
99
check-bypass:
1010
name: Check bypass
11+
if: ${{ github.repository_owner == 'PaddlePaddle' }}
1112
uses: ./.github/workflows/check-bypass.yml
1213
with:
1314
workflow-name: 'template'

.github/workflows/Coverage.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ defaults:
3131
jobs:
3232
check-skill:
3333
name: Check file paths
34+
if: ${{ github.repository_owner == 'PaddlePaddle' }}
3435
runs-on: ubuntu-latest
3536
continue-on-error: true
3637
permissions:

.github/workflows/cherry-pick.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ concurrency:
1717
jobs:
1818
cherry-pick:
1919
if: >
20+
github.repository_owner == 'PaddlePaddle' &&
2021
github.event.pull_request.merged == true &&
2122
(
2223
github.event.action == 'labeled' ||

.github/workflows/remove-skip-ci-labels.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ permissions:
1010
jobs:
1111
remove-skip-ci-labels:
1212
name: Remove skip-ci labels on new commits
13+
if: ${{ github.repository_owner == 'PaddlePaddle' }}
1314
runs-on: ubuntu-latest
1415
steps:
1516
- name: Get PR labels

0 commit comments

Comments
 (0)