Skip to content

Commit

Permalink
Don't run ci twice on PR's
Browse files Browse the repository at this point in the history
Prevents ci from being run on branches that have a PR created for them.
This doesn't prevent ci from running on PR's from forks.
  • Loading branch information
charles-lunarg committed Oct 22, 2024
1 parent 7fcd5d0 commit 9e826bb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@

name: CI Build

on: [push, pull_request, workflow_dispatch]
on: [push, pull_request]

jobs:
linux:
name: Linux
runs-on: ubuntu-latest
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -64,7 +65,7 @@ jobs:
windows:
name: Windows
runs-on: windows-latest

if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
strategy:
matrix:
arch: [ Win32, x64 ]
Expand Down

0 comments on commit 9e826bb

Please sign in to comment.