Skip to content

Commit

Permalink
Added if statement to try and fix CI duplication (#2988)
Browse files Browse the repository at this point in the history
Co-authored-by: Mohamed Abdelfatah <39927413+Mo-Fatah@users.noreply.github.com>
  • Loading branch information
Sharpz7 and Mo-Fatah authored Sep 20, 2023
1 parent 33564e1 commit 7abc18f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: CI

on:
push:
tags:
- v*
branches-ignore:
- gh-pages
pull_request:
Expand All @@ -27,13 +25,15 @@ permissions:

jobs:
lint:
if: github.event_name == 'schedule' || github.event_name == 'push' || github.event.pull_request.head.repo.id != github.event.pull_request.base.repo.id
uses: ./.github/workflows/lint.yml
test:
if: github.event_name == 'schedule' || github.event_name == 'push' || github.event.pull_request.head.repo.id != github.event.pull_request.base.repo.id
uses: ./.github/workflows/test.yml
# Virtual job that can be configured as a required check before a PR can be merged.
all-required-checks-done:
name: All required checks done
if: ${{ always() }}
if: github.event_name == 'schedule' || github.event_name == 'push' || github.event.pull_request.head.repo.id != github.event.pull_request.base.repo.id
needs:
- lint
- test
Expand Down

0 comments on commit 7abc18f

Please sign in to comment.