From f895b303f0953c0118b25695330c3ae0ce64ba0f Mon Sep 17 00:00:00 2001 From: Pierre-Marie de Rodat Date: Fri, 18 Dec 2020 09:36:41 +0100 Subject: [PATCH] Do not run "build" workflow when there is no upload secret The only purpose of this workflow is to upload builds, so do not run it in contexts when upload is impossible. TN: TC07-049 --- .github/workflows/build-binaries.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/build-binaries.yml b/.github/workflows/build-binaries.yml index 9f9feb887..6c241c56b 100644 --- a/.github/workflows/build-binaries.yml +++ b/.github/workflows/build-binaries.yml @@ -7,6 +7,12 @@ name: Build binaries jobs: build: name: Build and deploy + + # The only purpose of this workflow is to upload builds, so do not run it + # in contexts when upload is impossible: only the official repository has + # the secrets to upload binaries to Bintray. + if: github.repository = "AdaCore/libadalang" + strategy: fail-fast: false matrix: # Build debug and production