Skip to content

Commit

Permalink
CI: Stubs on pull_request_target
Browse files Browse the repository at this point in the history
  • Loading branch information
ax3l committed Oct 19, 2023
1 parent 21ccdf9 commit 6ef5591
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,46 @@ name: 👑 CI

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

on: [push, pull_request]
on: [push, pull_request, pull_request_target]

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

jobs:
ubuntu:
if: github.event_name != 'pull_request_target'
name: 🐧 Ubuntu
uses: ./.github/workflows/ubuntu.yml

intel:
if: github.event_name != 'pull_request_target'
name: 🐧 Intel
uses: ./.github/workflows/intel.yml

hip:
if: github.event_name != 'pull_request_target'
name: 🐧 HIP
uses: ./.github/workflows/hip.yml

macos:
if: github.event_name != 'pull_request_target'
name: 🍏 macOS
uses: ./.github/workflows/macos.yml

windows:
if: github.event_name != 'pull_request_target'
name: 🪟 Windows
uses: ./.github/workflows/windows.yml

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

save_pr_number:
Expand Down

0 comments on commit 6ef5591

Please sign in to comment.