Skip to content

Commit

Permalink
resolve comment, fix condition for fork repos
Browse files Browse the repository at this point in the history
  • Loading branch information
ljubon committed Nov 20, 2023
1 parent d2d8f68 commit a186430
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ on:

jobs:
release:
# Do not run this job for pull requests where both branches are from the same repo.
# Jobs that depend on this one will be skipped too.
# This prevents duplicate CI runs for our own pull requests, whilst preserving the ability to
# run the CI for each branch push to a fork, and for each pull request originating from a fork.
if: github.event_name == 'push' || github.event.pull_request.head.repo.id != github.event.pull_request.base.repo.id
permissions:
contents: write
runs-on: ubuntu-latest
Expand Down

0 comments on commit a186430

Please sign in to comment.