From 4a63cecebcfa7522ce6ca0b8cdec5ef5d2e5193a Mon Sep 17 00:00:00 2001 From: Bruno Alla Date: Mon, 6 Dec 2021 11:50:50 +0000 Subject: [PATCH] Disable a few workflows on forks --- .github/workflows/django-issue-checker.yml | 2 +- .github/workflows/pre-commit-autoupdate.yml | 3 +++ .github/workflows/update-changelog.yml | 1 - .github/workflows/update-contributors.yml | 4 +++- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/django-issue-checker.yml b/.github/workflows/django-issue-checker.yml index e071968f..1118e1b2 100644 --- a/.github/workflows/django-issue-checker.yml +++ b/.github/workflows/django-issue-checker.yml @@ -10,7 +10,7 @@ on: workflow_dispatch: jobs: - issue-manager: + issue-checker: # Disables this workflow from running in a repository that is not part of the indicated organization/user if: github.repository_owner == 'cookiecutter' diff --git a/.github/workflows/pre-commit-autoupdate.yml b/.github/workflows/pre-commit-autoupdate.yml index dd3c4dd6..c8fa35b5 100644 --- a/.github/workflows/pre-commit-autoupdate.yml +++ b/.github/workflows/pre-commit-autoupdate.yml @@ -10,6 +10,9 @@ on: jobs: auto-update: + # Disables this workflow from running in a repository that is not part of the indicated organization/user + if: github.repository_owner == 'cookiecutter' + runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/update-changelog.yml b/.github/workflows/update-changelog.yml index 593ee150..00065c05 100644 --- a/.github/workflows/update-changelog.yml +++ b/.github/workflows/update-changelog.yml @@ -13,7 +13,6 @@ jobs: if: github.repository_owner == 'cookiecutter' runs-on: ubuntu-latest - steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/update-contributors.yml b/.github/workflows/update-contributors.yml index 0f3508dc..2e6e65b8 100644 --- a/.github/workflows/update-contributors.yml +++ b/.github/workflows/update-contributors.yml @@ -7,8 +7,10 @@ on: jobs: build: - runs-on: ubuntu-latest + # Disables this workflow from running in a repository that is not part of the indicated organization/user + if: github.repository_owner == 'cookiecutter' + runs-on: ubuntu-latest steps: - uses: actions/checkout@v2