Skip to content

Commit

Permalink
ci: fix CI when run from forks
Browse files Browse the repository at this point in the history
  • Loading branch information
Derpius committed Dec 2, 2023
1 parent 3486c33 commit e29edd7
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/lest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ name: Lest CI

on:
workflow_call:
push:
branches-ignore:
- master

jobs:
lint:
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: Pull request created or updated

on: pull_request

jobs:
lest:
uses: "./.github/workflows/lest.yml"
# Only run on forks to avoid duplicating the "push" workflow
if: ${{ github.event.pull_request.head.repo.fork }}
10 changes: 10 additions & 0 deletions .github/workflows/push_feature.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Push to feature branch

on:
push:
branches-ignore:
- master

jobs:
lest:
uses: ./.github/workflows/lest.yml

0 comments on commit e29edd7

Please sign in to comment.