Skip to content

Commit

Permalink
Avoid duplicate jobs on PR from a branch on the same repo
Browse files Browse the repository at this point in the history
  • Loading branch information
MaeIsBad committed Apr 4, 2023
1 parent a77df19 commit 98817b5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ env:

jobs:
lint:
# Avoid duplicate jobs on PR from a branch on the same repo
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -22,6 +25,9 @@ jobs:
env:
RUSTDOCFLAGS: -Dwarnings
test:
# Avoid duplicate jobs on PR from a branch on the same repo
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit 98817b5

Please sign in to comment.