Skip to content

Commit

Permalink
Merge branch 'ko3n1g/ci/cherry-pick-strip-chars' into 'main'
Browse files Browse the repository at this point in the history
ci: Fix cherry-pick strings

See merge request ADLR/megatron-lm!2139
  • Loading branch information
ko3n1g committed Sep 23, 2024
2 parents 1f2d556 + e464e94 commit 0fd4617
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .gitlab/stages/00.pre.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,10 @@ maybe_cherry_pick_commit:
MR=$(curl --header "PRIVATE-TOKEN: ${PROJECT_ACCESS_TOKEN_MCORE}" --url "https://${GITLAB_ENDPOINT}/api/v4/projects/${CI_PROJECT_ID}/merge_requests/${MR_ID}")
LABELS=$(echo -E $MR | jq '.labels | join(",")' | tr -d '"')
AUTHOR_ID=$(echo -E $MR | jq '.author.id')
AUTHOR_NAME=$(echo -E $MR | jq '.author.username')
TITLE=$(echo -E $MR | jq '.title')
MILESTONE_ID=$(echo -E $MR | jq '.milestone.id')
AUTHOR_ID=$(echo -E $MR | jq '.author.id' | tr -d '"')
AUTHOR_NAME=$(echo -E $MR | jq '.author.username' | tr -d '"')
TITLE=$(echo -E $MR | jq '.title' | tr -d '"')
MILESTONE_ID=$(echo -E $MR | jq '.milestone.id' | tr -d '"')
TARGET_BRANCHES=$(echo "$LABELS" | grep -o 'core_[^,]*')
if [[ $TARGET_BRANCHES == "" ]]; then
Expand Down

0 comments on commit 0fd4617

Please sign in to comment.