Skip to content

Commit

Permalink
Suppress release workflow on forks (#24968)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddbeck authored Nov 6, 2024
1 parent 1e32c75 commit e6df4eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ permissions:

jobs:
manage-release-pr:
if: github.repository == 'mdn/browser-compat-data'
name: Manage release PR
runs-on: ubuntu-latest

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ permissions:

jobs:
create-release:
if: github.event_name == 'push' && startsWith(github.event.head_commit.message, 'Release v')
if: github.repository == 'mdn/browser-compat-data' && github.event_name == 'push' && startsWith(github.event.head_commit.message, 'Release v')
name: Create release
runs-on: ubuntu-latest

Expand Down

0 comments on commit e6df4eb

Please sign in to comment.