We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 17fd912 commit 47f3c0bCopy full SHA for 47f3c0b
.gitlab/stages/01.test.yml
@@ -448,14 +448,20 @@ test:gh_release:
448
449
echo -E "$PAYLOAD" > payload.txt
450
- >
451
- CMD=$(echo curl -L \
+ CMD=$(echo -E 'curl -L \
452
-X POST \
453
-H "Accept: application/vnd.github+json" \
454
- -H "Authorization: Bearer $GH_TOKEN" \
+ -H "Authorization: Bearer '"$GH_TOKEN"'" \
455
-H "X-GitHub-Api-Version: 2022-11-28" \
456
https://api.github.com/repos/NVIDIA/Megatron-LM/releases \
457
-d @payload.txt
458
- )
+ ')
459
+
460
+ if [[ "$IS_DRY_RUN" == "true" ]]; then
461
+ echo -E "$CMD"
462
+ else
463
+ eval "$CMD"
464
+ fi
465
466
if [[ "$PUBLISH_DRYRUN" == "yes" ]]; then
467
echo "$CMD"
0 commit comments