From 4f5b359cfce149b84b3b09c1ecc8708177443e00 Mon Sep 17 00:00:00 2001 From: botanicvelious Date: Wed, 18 Jan 2023 19:25:43 -0700 Subject: [PATCH] env not secret MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit You can only use the env context in the value of the with and name keys, or in a step’s if conditional, the secret value is not defined yet as its before the with. --- .github/workflows/flutter-nightly.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/flutter-nightly.yml b/.github/workflows/flutter-nightly.yml index 2b0e492c3..65bb6f6c8 100644 --- a/.github/workflows/flutter-nightly.yml +++ b/.github/workflows/flutter-nightly.yml @@ -153,7 +153,7 @@ jobs: uses: actions/checkout@v3 - name: Import the codesign cert - if: ${{ secrets.MACOS_P12_BASE64== 'true' }} + if: ${{ env.MACOS_P12_BASE64== 'true' }} uses: apple-actions/import-codesign-certs@v1 with: p12-file-base64: ${{ secrets.MACOS_P12_BASE64 }}