From 9c92aa59723299f628472a692a9eb9d824475db1 Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Tue, 25 Jul 2023 16:08:25 +0000 Subject: [PATCH] update decrypt.sh to receive output folder --- .github/actions/decrypt.sh | 2 +- .github/workflows/build.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/decrypt.sh b/.github/actions/decrypt.sh index 52db58b1..6ba31dd5 100644 --- a/.github/actions/decrypt.sh +++ b/.github/actions/decrypt.sh @@ -1,5 +1,5 @@ #!/bin/sh -credspath="${HOME}/.gam" +credspath="$3" if [ ! -d "$credspath" ]; then echo "creating ${credspath}" mkdir -p "$credspath" diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3228fd97..1d54db98 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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"