Skip to content

Commit 47f3c0b

Browse files
committed
ci: Fix release
Signed-off-by: oliver könig <okoenig@nvidia.com>
1 parent 17fd912 commit 47f3c0b

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.gitlab/stages/01.test.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -448,14 +448,20 @@ test:gh_release:
448448
449449
echo -E "$PAYLOAD" > payload.txt
450450
- >
451-
CMD=$(echo curl -L \
451+
CMD=$(echo -E 'curl -L \
452452
-X POST \
453453
-H "Accept: application/vnd.github+json" \
454-
-H "Authorization: Bearer $GH_TOKEN" \
454+
-H "Authorization: Bearer '"$GH_TOKEN"'" \
455455
-H "X-GitHub-Api-Version: 2022-11-28" \
456456
https://api.github.com/repos/NVIDIA/Megatron-LM/releases \
457457
-d @payload.txt
458-
)
458+
')
459+
460+
if [[ "$IS_DRY_RUN" == "true" ]]; then
461+
echo -E "$CMD"
462+
else
463+
eval "$CMD"
464+
fi
459465
460466
if [[ "$PUBLISH_DRYRUN" == "yes" ]]; then
461467
echo "$CMD"

0 commit comments

Comments
 (0)