From 22dbde3126e0d0a9ae8a9af533604c7ed682799d Mon Sep 17 00:00:00 2001 From: Jack Baldry Date: Mon, 16 Dec 2024 11:01:54 +0000 Subject: [PATCH] Don't run PR preview on forks (#97963) --- .github/workflows/deploy-pr-preview.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-pr-preview.yml b/.github/workflows/deploy-pr-preview.yml index 370351f99c0..348d79efedc 100644 --- a/.github/workflows/deploy-pr-preview.yml +++ b/.github/workflows/deploy-pr-preview.yml @@ -11,6 +11,7 @@ on: jobs: deploy-pr-preview: + if: github.repository == 'grafana/grafana' uses: grafana/writers-toolkit/.github/workflows/deploy-preview.yml@main with: sha: ${{ github.event.pull_request.head.sha }} @@ -20,4 +21,4 @@ jobs: repo: grafana website_directory: content/docs/grafana/latest relative_prefix: /docs/grafana/latest/ - index_file: true \ No newline at end of file + index_file: true