ci: do not run scheduled workflows in forks

This commit is contained in:
Ivan Dyachkov 2023-02-22 16:03:40 +01:00
parent 88d281edcc
commit 9065cb7429
2 changed files with 2 additions and 0 deletions

View File

@ -23,6 +23,7 @@ on:
jobs:
prepare:
runs-on: ubuntu-22.04
if: (github.repository_owner == 'emqx' && github.event_name == 'schedule') || github.event_name != 'schedule'
container: ghcr.io/emqx/emqx-builder/5.0-29:1.13.4-24.3.4.2-2-ubuntu22.04
outputs:
BUILD_PROFILE: ${{ steps.get_profile.outputs.BUILD_PROFILE }}

View File

@ -11,6 +11,7 @@ on:
jobs:
stale:
runs-on: ubuntu-latest
if: github.repository_owner == 'emqx'
permissions:
issues: write
pull-requests: none