actions: set explicit vault download directory and clean it up

This commit is contained in:
Jay Lee
2023-08-10 16:43:13 -04:00
committed by GitHub
parent b25ca66cc6
commit 2d53459291

View File

@@ -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