Skip to content

Commit

Permalink
Disable workflows in forks
Browse files Browse the repository at this point in the history
  • Loading branch information
cartermckinnon committed Aug 25, 2023
1 parent 4bae289 commit 650ff9b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/bot-trigger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- created
jobs:
bot:
if: ${{ github.event.issue.pull_request }}
if: ${{ github.event.issue.pull_request && github.repository == 'awslabs/amazon-eks-ami' }}
runs-on: ubuntu-latest
permissions: write-all
steps:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/janitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ permissions:
contents: read
jobs:
cluster-sweeper:
# disable in forks
if: github.repository == 'awslabs/amazon-eks-ami'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -21,6 +23,8 @@ jobs:
# 3 hours
max_age_seconds: 10800
ami-sweeper:
# disable in forks
if: github.repository == 'awslabs/amazon-eks-ami'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit 650ff9b

Please sign in to comment.