Skip to content
Snippets Groups Projects
Unverified Commit 4dc135ac authored by Ryan Laurie's avatar Ryan Laurie Committed by GitHub
Browse files

Disable github actions running on a cron for forks (#48967)

* dont run release log on forks

* dont run cron actions on forks at all
parent d1d4d713
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,8 @@ on:
jobs:
be-linter-cloverage:
# don't run this workflow on a cron for forks
if: ${{ github.event_name != 'schedule' || github.repository == 'metabase/metabase' }}
runs-on: ubuntu-22.04
timeout-minutes: 90
steps:
......
......@@ -9,6 +9,8 @@ on:
jobs:
files-changed:
name: Check which files changed
# don't run this workflow on a cron for forks
if: ${{ github.event_name != 'schedule' || github.repository == 'metabase/metabase' }}
runs-on: ubuntu-22.04
timeout-minutes: 3
outputs:
......
......@@ -7,6 +7,8 @@ on:
jobs:
flake-issue-creator:
# don't run this workflow on a cron for forks
if: ${{ github.event_name != 'schedule' || github.repository == 'metabase/metabase' }}
runs-on: ubuntu-22.04
timeout-minutes: 10
steps:
......
......@@ -7,6 +7,8 @@ on:
jobs:
flake-status-report:
# don't run this workflow on a cron for forks
if: ${{ github.event_name != 'schedule' || github.repository == 'metabase/metabase' }}
runs-on: ubuntu-22.04
timeout-minutes: 10
steps:
......
......@@ -21,6 +21,8 @@ jobs:
update-release-log:
runs-on: ubuntu-latest
timeout-minutes: 5
# don't run this workflow on a cron for forks
if: ${{ github.event_name != 'schedule' || github.repository == 'metabase/metabase' }}
env:
VERSION: ${{ (github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call')
&& inputs.version || vars.CURRENT_VERSION }}
......
......@@ -13,6 +13,8 @@ on:
jobs:
auto-patch-trigger:
# don't run this workflow on a cron for forks
if: ${{ github.event_name != 'schedule' || github.repository == 'metabase/metabase' }}
runs-on: ubuntu-22.04
timeout-minutes: 5
steps:
......
......@@ -7,6 +7,8 @@ on:
jobs:
check-release-status:
# don't run this workflow on a cron for forks
if: ${{ github.event_name != 'schedule' || github.repository == 'metabase/metabase' }}
runs-on: ubuntu-22.04
timeout-minutes: 10
steps:
......
......@@ -16,6 +16,8 @@ on:
jobs:
monitor:
# don't run this workflow on a cron for forks
if: ${{ github.event_name != 'schedule' || github.repository == 'metabase/metabase' }}
name: Generate Snyk report
runs-on: ubuntu-22.04
steps:
......
......@@ -8,6 +8,8 @@ permissions:
jobs:
close-stale-prs:
# don't run this workflow on a cron for forks
if: ${{ github.event_name != 'schedule' || github.repository == 'metabase/metabase' }}
runs-on: ubuntu-22.04
steps:
- uses: actions/stale@v6
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment