Skip to content

Commit

Permalink
Disable jobs unless running on the main repo (#4324)
Browse files Browse the repository at this point in the history
  • Loading branch information
theunrepentantgeek authored Oct 7, 2024
1 parent 4196008 commit e47cea2
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/api-docs-repo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,16 @@ on:

jobs:
gen-crd-docs:

runs-on: ubuntu-latest

permissions:
contents: read
packages: read

# Only run this scheduled job on the main repo, it can't work elsewhere
if: ${{ github.repository == 'Azure/azure-service-operator' }}

steps:
- name: Create token
uses: actions/create-github-app-token@v1
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/deploy-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,14 @@ on:

jobs:
deploy-site:

runs-on: ubuntu-latest

permissions:
packages: read

# Only run this scheduled job on the main repo, it can't work elsewhere
if: ${{ github.repository == 'Azure/azure-service-operator' }}

steps:
- name: Create token
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/helm-chart-repo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:
contents: read
packages: read

# Only run this scheduled job on the main repo, it can't work elsewhere
if: ${{ github.repository == 'Azure/azure-service-operator' }}

steps:
- name: Create token
uses: actions/create-github-app-token@v1
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/visualize-repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,15 @@ on:
- cron: "35 17 * * 0"
jobs:
render:

runs-on: ubuntu-latest

permissions:
contents: read

# Only run this scheduled job on the main repo, it can't work elsewhere
if: ${{ github.repository == 'Azure/azure-service-operator' }}

steps:
- name: Create token
uses: actions/create-github-app-token@v1
Expand Down

0 comments on commit e47cea2

Please sign in to comment.