Skip to content

Commit

Permalink
Merge branch 'ko3n1g/ci/skip-cherrypicking-on-empty-labels' into 'main'
Browse files Browse the repository at this point in the history
ci: Skip cherry-pick on empty label

See merge request ADLR/megatron-lm!2068
  • Loading branch information
ko3n1g committed Sep 9, 2024
2 parents 27c3737 + 6dade5f commit 90cd925
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .gitlab/stages/00.pre.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ maybe_cherry_pick_commit:
GIT_STRATEGY: "clone"
script:
- set -x
- set +e
- SHA=$(git rev-list --no-merges -n 1 HEAD)
- MESSAGE=$(git log -n 1 --pretty=format:%s $SHA)
- MR_ID=$(echo $MESSAGE | awk -F'!' '{print $2}' | awk '{print $1}' )
Expand Down

0 comments on commit 90cd925

Please sign in to comment.