mirror of https://github.com/tiangolo/fastapi.git
👷 Make cron jobs run only on main repo, not on forks, to avoid error notifications from missing tokens (#9735)
This commit is contained in:
parent
8cee653ad8
commit
dfa56f743a
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ on:
|
|||
|
||||
jobs:
|
||||
fastapi-people:
|
||||
if: github.repository_owner == 'tiangolo'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
|
|
|||
Loading…
Reference in New Issue