From 4a64b2aae65dcc40e1d86ec5067532cdf9adcd35 Mon Sep 17 00:00:00 2001 From: derrod Date: Wed, 3 Aug 2022 01:43:25 +0200 Subject: [PATCH] CI: Fix checking xcode url secret availability Apparently this doesn't work in "if" clauses. --- .github/workflows/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index caa6856e8..e7a71ad4b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -80,6 +80,7 @@ jobs: BLOCKED_FORMULAS: 'speexdsp curl php composer' CODESIGN_IDENT: '-' HAVE_CODESIGN_IDENTITY: ${{ secrets.MACOS_SIGNING_IDENTITY != '' && secrets.MACOS_SIGNING_CERT != '' }} + HAVE_XCODE_URL: ${{ secrets.XCODE_DOWNLOAD_URL != '' }} defaults: run: shell: bash @@ -156,7 +157,7 @@ jobs: echo "::set-output name=commitHash::$(git rev-parse --short=9 HEAD)" - name: 'Install Xcode 14 Beta' - if: ${{ startsWith(github.ref, 'refs/tags/') && github.event_name != 'pull_request' && env.HAVE_CODESIGN_IDENTITY == 'true' && secrets.XCODE_DOWNLOAD_URL != '' }} + if: ${{ startsWith(github.ref, 'refs/tags/') && github.event_name != 'pull_request' && env.HAVE_CODESIGN_IDENTITY == 'true' && env.HAVE_XCODE_URL == 'true' }} run: xcversion install "14 beta 4" --url=${{ secrets.XCODE_DOWNLOAD_URL }} - name: 'Install dependencies'