Skip to content

Commit b35533d

Browse files
authored
Add intermediate release/prerelease directory to tape path (#27)
1 parent 1030071 commit b35533d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/remote-copy.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -302,16 +302,16 @@ jobs:
302302
303303
for file in ${{ needs.copy-to-remote.outputs.files }} ${{ needs.copy-to-remote.outputs.manifests }}; do
304304
file_relative_to_config_dir=${file#${{ vars.CONFIGS_INPUT_DIR }}/}
305-
echo "Moving '$file' to '${{ vars.TAPE_ROOT_DIR }}/$now/$file_relative_to_config_dir'"
305+
echo "Moving '$file' to '${{ vars.TAPE_ROOT_DIR }}/${{ vars.ENVIRONMENT_TYPE }}/$now/$file_relative_to_config_dir'"
306306
307307
# Create all intermediate directories before putting the file
308308
intermediate_dirs=$(dirname $file_relative_to_config_dir)
309-
mdss -P ${{ vars.PROJECT_CODE }} mkdir -p ${{ vars.TAPE_ROOT_DIR }}/$now/$intermediate_dirs
309+
mdss -P ${{ vars.PROJECT_CODE }} mkdir -p ${{ vars.TAPE_ROOT_DIR }}/${{ vars.ENVIRONMENT_TYPE }}/$now/$intermediate_dirs
310310
311311
# Copy the file itself to tape
312-
mdss -P ${{ vars.PROJECT_CODE }} put $file ${{ vars.TAPE_ROOT_DIR }}/$now/$file_relative_to_config_dir
312+
mdss -P ${{ vars.PROJECT_CODE }} put $file ${{ vars.TAPE_ROOT_DIR }}/${{ vars.ENVIRONMENT_TYPE }}/$now/$file_relative_to_config_dir
313313
done
314314
315315
echo "Output:"
316-
mdss -P ${{ vars.PROJECT_CODE }} ls -R ${{ vars.TAPE_ROOT_DIR }}/$now
316+
mdss -P ${{ vars.PROJECT_CODE }} ls -R ${{ vars.TAPE_ROOT_DIR }}/${{ vars.ENVIRONMENT_TYPE }}/$now
317317
EOT

0 commit comments

Comments
 (0)