Skip to content

Commit

Permalink
Add condition to stop events in forked branches
Browse files Browse the repository at this point in the history
  • Loading branch information
Sae126V authored and tofu-rocketry committed Jun 12, 2023
1 parent ae03d99 commit a197ad8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build-pkgs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ on:
jobs:
build-rpm:
runs-on: ubuntu-latest
if: '!github.event.repository.fork'

env:
# _github_home is the dir used as a volume by the container
RPMDIR: /home/runner/work/_temp/_github_home/rpmbuild
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
if: '!github.event.repository.fork'

permissions:
actions: read
contents: read
Expand Down

0 comments on commit a197ad8

Please sign in to comment.