Skip to content

Commit

Permalink
fix: update fork registry ci
Browse files Browse the repository at this point in the history
  • Loading branch information
prompt-bot authored and SimsonW committed Jun 6, 2024
1 parent 1f113ef commit a00a8f9
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/test-inference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Build and Test

on:
pull_request_target:
branches: ["master"]
types: [opened, synchronize, reopened]
paths:
- "inference/**"
- ".github/workflows/test-inference.yml"
Expand Down Expand Up @@ -30,7 +30,18 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.base.ref }}
repository: ${{ github.repository }}

- name: Checkout forked repository
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
path: fork

- name: Switch to forked repository
run: cd fork

- name: Check spelling of repo
uses: crate-ci/typos@master
Expand Down

0 comments on commit a00a8f9

Please sign in to comment.