Skip to content

Commit 42b634a

Browse files
SigureMoCopilot
andauthored
[CI] Skip PIR version validation on non release branch and forked repo (#76123)
--------- Co-authored-by: Copilot <[email protected]>
1 parent 04b2c73 commit 42b634a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.github/workflows/validate-pir-versions.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@ name: Check version equality on release branch
22

33
on:
44
create:
5-
branches:
6-
- 'release/**'
75
workflow_dispatch:
86

97
jobs:
108
check-version-and-create-issue:
119
runs-on: ubuntu-latest
12-
if: github.ref_type == 'branch'
10+
if: github.ref_type == 'branch' && startsWith(github.ref, 'refs/heads/release/') && github.repository_owner == 'PaddlePaddle'
1311
steps:
1412
- name: Checkout code
1513
uses: actions/checkout@v3

0 commit comments

Comments
 (0)