fix(macos): correctly clean up keychain (#1075)
This commit is contained in:
parent
e9ea41fcfa
commit
70082e0f0f
1 changed files with 8 additions and 3 deletions
11
.github/workflows/macos.yml
vendored
11
.github/workflows/macos.yml
vendored
|
@ -80,7 +80,7 @@ jobs:
|
|||
cd "VSCode-darwin-${VSCODE_ARCH}"
|
||||
export CERTIFICATE_P12=VSCodium.p12
|
||||
echo $CERTIFICATE_OSX_P12 | base64 --decode > $CERTIFICATE_P12
|
||||
export KEYCHAIN=build.keychain
|
||||
export KEYCHAIN=$RUNNER_TEMP/build.keychain
|
||||
security create-keychain -p mysecretpassword $KEYCHAIN
|
||||
security default-keychain -s $KEYCHAIN
|
||||
security unlock-keychain -p mysecretpassword $KEYCHAIN
|
||||
|
@ -107,6 +107,11 @@ jobs:
|
|||
GITHUB_USERNAME: ${{ github.repository_owner }}
|
||||
|
||||
- name: Clean up keychain
|
||||
if: ${{ always() }}
|
||||
if: always()
|
||||
run: |
|
||||
security delete-keychain build.keychain
|
||||
KEYCHAIN=$RUNNER_TEMP/build.keychain
|
||||
|
||||
if [ -f "$KEYCHAIN" ];
|
||||
then
|
||||
security delete-keychain $KEYCHAIN
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue