env not secret

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.
This commit is contained in:
botanicvelious 2023-01-18 19:25:43 -07:00 committed by GitHub
parent 92d009b93d
commit 4f5b359cfc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 }}