Skip to content

Commit 3d32f10

Browse files
committed
Run CI for cherry-pick if using NVKS runner
Signed-off-by: Pablo Garay <[email protected]>
1 parent d3776b5 commit 3d32f10

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/_cherry_pick.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,21 @@ jobs:
147147
https://api.github.com/repos/$REPOSITORY/issues/$NEW_PR_ID/labels \
148148
-d '{"labels":["Run CICD", "cherry-pick"]}'
149149
150+
# Check if copy-pr-bot.yaml exists and add "/ok to test" comment if it does
151+
if [ -f ".github/copy-pr-bot.yaml" ]; then
152+
# Get the latest commit SHA of the current branch
153+
LATEST_SHA=$(git rev-parse HEAD)
154+
155+
# Add comment via GitHub API
156+
curl -L \
157+
-X POST \
158+
-H "Accept: application/vnd.github+json" \
159+
-H "Authorization: Bearer $GH_TOKEN" \
160+
-H "X-GitHub-Api-Version: 2022-11-28" \
161+
https://api.github.com/repos/$REPOSITORY/issues/$NEW_PR_ID/comments \
162+
-d "{\"body\":\"/ok to test $LATEST_SHA\"}"
163+
fi
164+
150165
else
151166
URL="https://github.com/$REPOSITORY/pull/$PR_ID"
152167

0 commit comments

Comments
 (0)