From 2d53459291a733018fa6faa5f07c5ad31ceaa320 Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Thu, 10 Aug 2023 16:43:13 -0400 Subject: [PATCH] actions: set explicit vault download directory and clean it up --- .github/workflows/build.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ceea35c6..986a117d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -762,7 +762,10 @@ jobs: $gam whatis $newuser || if [ $? != 20 ]; then exit $?; fi # expect a 20 return code (is a user) $gam user $gam_user show tokens $gam config enable_dasa false save - $gam print exports matter $matterid | $gam csv - gam download export $matterid id:~~id~~ + download_dir="${RUNNER_TEMP}/TEMP_DELETE_ME" + mkdir "$download_dir" + $gam print exports matter $matterid | $gam csv - gam download export $matterid id:~~id~~ targetfolder "$download_dir" + rmdir /q /s "$download_dir" $gam delete hold "GHA hold $newbase" matter $matterid $gam update matter $matterid action close $gam update matter $matterid action delete