From: Sebastián Ramírez Date: Sat, 24 Jun 2023 12:30:57 +0000 (+0200) Subject: 👷 Make cron jobs run only on main repo, not on forks, to avoid error notifications... X-Git-Tag: 0.99.0~31 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dfa56f743ac0443c3f252b9e98ce925c4d630620;p=thirdparty%2Ffastapi%2Ffastapi.git 👷 Make cron jobs run only on main repo, not on forks, to avoid error notifications from missing tokens (#9735) --- diff --git a/.github/workflows/issue-manager.yml b/.github/workflows/issue-manager.yml index 617105b6e8..3246231031 100644 --- a/.github/workflows/issue-manager.yml +++ b/.github/workflows/issue-manager.yml @@ -2,7 +2,7 @@ name: Issue Manager on: schedule: - - cron: "0 0 * * *" + - cron: "10 3 * * *" issue_comment: types: - created @@ -16,6 +16,7 @@ on: jobs: issue-manager: + if: github.repository_owner == 'tiangolo' runs-on: ubuntu-latest steps: - uses: tiangolo/issue-manager@0.4.0 diff --git a/.github/workflows/label-approved.yml b/.github/workflows/label-approved.yml index 4a73b02aa3..976d29f74d 100644 --- a/.github/workflows/label-approved.yml +++ b/.github/workflows/label-approved.yml @@ -6,6 +6,7 @@ on: jobs: label-approved: + if: github.repository_owner == 'tiangolo' runs-on: ubuntu-latest steps: - uses: docker://tiangolo/label-approved:0.0.2 diff --git a/.github/workflows/people.yml b/.github/workflows/people.yml index b167c268fa..15ea464a1f 100644 --- a/.github/workflows/people.yml +++ b/.github/workflows/people.yml @@ -12,6 +12,7 @@ on: jobs: fastapi-people: + if: github.repository_owner == 'tiangolo' runs-on: ubuntu-latest steps: - uses: actions/checkout@v3