Skip to content

Commit

Permalink
Add a condition to run only on the main repo not forks (#1606)
Browse files Browse the repository at this point in the history
  • Loading branch information
spring1843 authored Mar 31, 2022
1 parent bc2273f commit d31dc87
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/codeql-analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:

jobs:
analyze:
if: github.repository == 'aws/karpenter'
name: Analyze
runs-on: ubuntu-latest
permissions:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/deflake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ on:
schedule:
- cron: '0 12 * * *'
jobs:
build:
deflake:
if: github.repository == 'aws/karpenter'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
permissions:
id-token: write
jobs:
build:
nightly:
if: github.repository == 'aws/karpenter'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
tags: ['v*']
jobs:
release:
if: github.repository == 'aws/karpenter'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down

0 comments on commit d31dc87

Please sign in to comment.