]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
👷 Make cron jobs run only on main repo, not on forks, to avoid error notifications...
authorSebastián Ramírez <tiangolo@gmail.com>
Sat, 24 Jun 2023 12:30:57 +0000 (14:30 +0200)
committerGitHub <noreply@github.com>
Sat, 24 Jun 2023 12:30:57 +0000 (14:30 +0200)
.github/workflows/issue-manager.yml
.github/workflows/label-approved.yml
.github/workflows/people.yml

index 617105b6e8acb8c7d5596489b6d4dcf14e5cba05..32462310312c54b2c4b86bea663cd99c97a8ddf0 100644 (file)
@@ -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
index 4a73b02aa3a484f07395e9964057847c22c217c5..976d29f74d758ab18ad7a876661bea15ebc5590b 100644 (file)
@@ -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
index b167c268fa73da610459751cd3a89f86c5a3c7f3..15ea464a1f587ff2498b93ca95241b4f5867451c 100644 (file)
@@ -12,6 +12,7 @@ on:
 
 jobs:
   fastapi-people:
+    if: github.repository_owner == 'tiangolo'
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v3