From 057079e38cf6ea0be066b67673c71dff83991d91 Mon Sep 17 00:00:00 2001 From: hjpotter92 Date: Thu, 5 Sep 2024 15:32:26 +0530 Subject: [PATCH] build.yaml: Skip upload step raising an error for PR from forks We don't want our gcp buckets to get overfilled with builds from external devs. --- .github/workflows/build.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 56618fb8cf..ace2b7e8e0 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -242,6 +242,7 @@ jobs: upload: name: Upload artifacts to google bucket + if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository permissions: contents: "read" id-token: "write"