diff --git a/.github/actions/decrypt.sh b/.github/actions/decrypt.sh index 381a721c..2c4a326e 100644 --- a/.github/actions/decrypt.sh +++ b/.github/actions/decrypt.sh @@ -1,10 +1,8 @@ #!/bin/sh -mydir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" -echo "running from ${mydir}" -credsfile="${gampath}/creds.tar" +credsfile="$1" echo "target file is ${credsfile}" -gpgfile="${mydir}/creds.tar.gpg" +gpgfile="$2" echo "source file is ${gpgfile}" if [ -z ${PASSCODE+x} ]; then echo "PASSCODE is unset"; diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 77620633..ef93c8b3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -184,7 +184,7 @@ jobs: env: # Or as an environment variable PASSCODE: ${{ secrets.PASSCODE }} run: | - source .github/actions/decrypt.sh + source .github/actions/decrypt.sh .github/actions/creds.tar.gpg src/creds.tar cd src export OAUTHFILE="oauth2.txt-gam-gha-${JID}" $gam oauth info