Skip to content

Commit 7b2efef

Browse files
authored
fix: skip generate_protobuf job for fork PRs to prevent checkout failure
1 parent 284152e commit 7b2efef

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/build-protocol.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
generate_protobuf:
2323
runs-on: ubuntu-latest
2424
name: Generating protobuf
25-
if: github.event_name == 'pull_request'
25+
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false
2626

2727
defaults:
2828
run:

.github/workflows/build-rtc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
generate_protobuf:
2323
runs-on: ubuntu-latest
2424
name: Generating protobuf
25-
if: github.event_name == 'pull_request'
25+
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false
2626

2727
defaults:
2828
run:

0 commit comments

Comments
 (0)