Skip to content

Commit

Permalink
ci: avoid duplicate runs
Browse files Browse the repository at this point in the history
Do not run the build workflow twice on pull requests whose branch
belongs to mantelo itself.
  • Loading branch information
derlin committed Oct 27, 2024
1 parent 5bf2263 commit 838d64c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
# Avoid duplicate runs
if: github.event_name == 'push' || (github.event.name == 'pull_request' && github.event.pull_request.head.repo.fork)
steps:
- uses: actions/checkout@v4

Expand Down

0 comments on commit 838d64c

Please sign in to comment.