Skip to content

Commit 6ef5591

Browse files
committed
CI: Stubs on pull_request_target
1 parent 21ccdf9 commit 6ef5591

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,36 +2,46 @@ name: 👑 CI
22

33
# This workflow updates the .pyi stub files for documentation and interactive use.
44

5-
on: [push, pull_request]
5+
on: [push, pull_request, pull_request_target]
66

77
concurrency:
88
group: ${{ github.ref }}-${{ github.head_ref }}-ci
99
cancel-in-progress: true
1010

1111
jobs:
1212
ubuntu:
13+
if: github.event_name != 'pull_request_target'
1314
name: 🐧 Ubuntu
1415
uses: ./.github/workflows/ubuntu.yml
1516

1617
intel:
18+
if: github.event_name != 'pull_request_target'
1719
name: 🐧 Intel
1820
uses: ./.github/workflows/intel.yml
1921

2022
hip:
23+
if: github.event_name != 'pull_request_target'
2124
name: 🐧 HIP
2225
uses: ./.github/workflows/hip.yml
2326

2427
macos:
28+
if: github.event_name != 'pull_request_target'
2529
name: 🍏 macOS
2630
uses: ./.github/workflows/macos.yml
2731

2832
windows:
33+
if: github.event_name != 'pull_request_target'
2934
name: 🪟 Windows
3035
uses: ./.github/workflows/windows.yml
3136

3237
stubs:
38+
if: github.event_name != 'pull_request'
3339
name: 🔄 Update Stub Files
3440
needs: [ubuntu, intel, hip, macos, windows]
41+
permissions:
42+
# Give the default GITHUB_TOKEN write permission to commit and push the
43+
# changed files back to the repository.
44+
contents: write
3545
uses: ./.github/workflows/stubs.yml
3646

3747
save_pr_number:

0 commit comments

Comments
 (0)