From 82671e4cbd9ced0a388b1eda0d2fe2140a9398cf Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Mon, 12 Aug 2024 10:24:48 +0200 Subject: [PATCH] fix: only upload on push to main --- .github/workflows/build.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index acf7d9b..4733d1b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,6 +5,9 @@ on: types: - opened - synchronize + push: + branches: + - main permissions: contents: write @@ -58,6 +61,7 @@ jobs: curl --output build/linux/sysroot_scripts/sysroots.json $json_url az extension add --name storage-preview - name: Upload Sysroots to Azure + if: github.event_name == 'push' run: ./build/linux/sysroot_scripts/build_and_upload.py --upload - name: Upload Sysroot JSON Artifact uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # 4.2.6