Guard condition for existing keychain

This commit is contained in:
Jacob Heider 2023-02-27 11:42:37 -05:00
parent 3053d71414
commit cba587bf0f
No known key found for this signature in database
GPG key ID: A98011B5713535BF

View file

@ -33,6 +33,13 @@ runs:
# ago, and we need bugfixes. # ago, and we need bugfixes.
# FIXME: replace this with a tea script based on https://localazy.com/blog/how-to-automatically-sign-macos-apps-using-github-actions # FIXME: replace this with a tea script based on https://localazy.com/blog/how-to-automatically-sign-macos-apps-using-github-actions
# github has a doc with similar content, but it's not returning to me atm. # github has a doc with similar content, but it's not returning to me atm.
# apple-actions/import-codesign-certs will fail if the keychain already exists, so we prophylactically
# delete it if it does.
- name: Delete keychain
shell: sh
run: security delete-keychain signing_temp.keychain || true
- uses: apple-actions/import-codesign-certs@d54750db52a4d3eaed0fc107a8bab3958f3f7494 - uses: apple-actions/import-codesign-certs@d54750db52a4d3eaed0fc107a8bab3958f3f7494
with: with:
p12-file-base64: ${{ inputs.p12-file-base64 }} p12-file-base64: ${{ inputs.p12-file-base64 }}