Skip to content

Commit

Permalink
Only run GitHub action from jenkinsci repositories
Browse files Browse the repository at this point in the history
Avoid 'Run failed' mail messages from forks
  • Loading branch information
MarkEWaite committed Jan 26, 2024
1 parent dce06c5 commit eb283ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
jobs:
update_release_draft:
runs-on: ubuntu-latest
if: github.repository_owner == 'jenkins-infra'
steps:
# Drafts your next Release notes as Pull Requests are merged into the default branch
- uses: release-drafter/release-drafter@v5
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/updatecli.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
jobs:
updatecli:
runs-on: ubuntu-latest
if: github.repository_owner == 'jenkins-infra'
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down

0 comments on commit eb283ad

Please sign in to comment.