Skip to content

Commit

Permalink
213aaa
Browse files Browse the repository at this point in the history
  • Loading branch information
mo3et committed Oct 18, 2024
1 parent e3df121 commit d4d9e82
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/merge-from-milestone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,12 @@ jobs:
fi
done
# Check if there are new commits in the cherry-pick branch
if [ -z "$(git log $TARGET_BRANCH..$CHERRY_PICK_BRANCH)" ]; then
echo "No new commits to push. Exiting."
exit 1
fi
# Push the new branch with cherry-picked commits
git push origin $CHERRY_PICK_BRANCH
Expand Down Expand Up @@ -178,5 +184,4 @@ jobs:
curl -s -X POST -H "Authorization: token $BOT_TOKEN" \
-H "Accept: application/vnd.github+json" \
"https://api.github.com/repos/${{ github.repository }}/issues/$pr_number/labels" \
-d "$(jq -n --arg label "${LABEL_NAME}" '{labels: [$label]}')"
done
-d "$(jq -n --arg label "${LABEL_NAME}" '{labels:

0 comments on commit d4d9e82

Please sign in to comment.