only install gpg on hosted macs

This commit is contained in:
Jay Lee
2023-07-31 17:13:37 -04:00
committed by GitHub
parent 0b927d5390
commit 5bc294f62e

View File

@@ -620,7 +620,7 @@ jobs:
env:
PASSCODE: ${{ secrets.PASSCODE }}
run: |
if [[ "${RUNNER_OS}" == "macOS" ]]; then
if ([ "${RUNNER_OS}" == "macOS" ] && ! which gpg > /dev/null); then
brew install gnupg
fi
source ../.github/actions/decrypt.sh ../.github/actions/creds.tar.xz.gpg creds.tar.xz "${GAMCFGDIR}"