update decrypt.sh to receive output folder

This commit is contained in:
Jay Lee
2023-07-25 16:08:25 +00:00
parent d3c0da36aa
commit 9c92aa5972
2 changed files with 2 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
#!/bin/sh
credspath="${HOME}/.gam"
credspath="$3"
if [ ! -d "$credspath" ]; then
echo "creating ${credspath}"
mkdir -p "$credspath"

View File

@@ -609,7 +609,7 @@ jobs:
if [[ "${RUNNER_OS}" == "macOS" ]]; then
brew install gnupg
fi
source ../.github/actions/decrypt.sh ../.github/actions/creds.tar.xz.gpg creds.tar.xz
source ../.github/actions/decrypt.sh ../.github/actions/creds.tar.xz.gpg creds.tar.xz "${GAMCFGDIR}"
mv -v "${GAMCFGDIR}/oauth2.txt-gam-gha-${JID}" "${GAMCFGDIR}/oauth2.txt"
rm -v "${GAMCFGDIR}/oauth2.txt-gam*
export gam_user="gam-gha-${JID}@pdl.jaylee.us"