mirror of
https://github.com/VSCodium/vscodium.git
synced 2026-04-24 11:50:14 +10:00
fix(macos): correctly clean up keychain (#1075)
This commit is contained in:
11
.github/workflows/macos.yml
vendored
11
.github/workflows/macos.yml
vendored
@@ -80,7 +80,7 @@ jobs:
|
|||||||
cd "VSCode-darwin-${VSCODE_ARCH}"
|
cd "VSCode-darwin-${VSCODE_ARCH}"
|
||||||
export CERTIFICATE_P12=VSCodium.p12
|
export CERTIFICATE_P12=VSCodium.p12
|
||||||
echo $CERTIFICATE_OSX_P12 | base64 --decode > $CERTIFICATE_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 create-keychain -p mysecretpassword $KEYCHAIN
|
||||||
security default-keychain -s $KEYCHAIN
|
security default-keychain -s $KEYCHAIN
|
||||||
security unlock-keychain -p mysecretpassword $KEYCHAIN
|
security unlock-keychain -p mysecretpassword $KEYCHAIN
|
||||||
@@ -107,6 +107,11 @@ jobs:
|
|||||||
GITHUB_USERNAME: ${{ github.repository_owner }}
|
GITHUB_USERNAME: ${{ github.repository_owner }}
|
||||||
|
|
||||||
- name: Clean up keychain
|
- name: Clean up keychain
|
||||||
if: ${{ always() }}
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
security delete-keychain build.keychain
|
KEYCHAIN=$RUNNER_TEMP/build.keychain
|
||||||
|
|
||||||
|
if [ -f "$KEYCHAIN" ];
|
||||||
|
then
|
||||||
|
security delete-keychain $KEYCHAIN
|
||||||
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user