Skip to content

Commit

Permalink
chore: prevent actions from running on forks (#10467)
Browse files Browse the repository at this point in the history
  • Loading branch information
alessbell committed Jan 23, 2023
1 parent b5ccef2 commit c7ccbce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/close-stale-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ on:

jobs:
stale:
# Prevents action from running on forks
if: github.repository == 'apollographql/apollo-client'
runs-on: ubuntu-latest
permissions:
issues: write
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
name: Changesets Release
# Prevents action from creating a PR on forks
if: github.repository == 'apollographql/apollo-client'
runs-on: ubuntu-latest
steps:
- name: Checkout repo
Expand Down

0 comments on commit c7ccbce

Please sign in to comment.