We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31f1bbd commit 35a8589Copy full SHA for 35a8589
1 file changed
.github/workflows/syncbot.yml
@@ -36,6 +36,7 @@ jobs:
36
37
# Get the source branch name and target branch
38
SOURCE_BRANCH="${{ github.head_ref }}"
39
+ SOURCE_SHA="${{ github.event.pull_request.head.sha }"
40
TARGET_BRANCH="${{ steps.target-branch.outputs.branch }}"
41
SYNC_BRANCH="sync-${SOURCE_BRANCH}-to-${TARGET_BRANCH}"
42
@@ -55,7 +56,7 @@ jobs:
55
56
git checkout -b $SYNC_BRANCH origin/$TARGET_BRANCH
57
58
# Get all commits from the PR
- COMMITS=$(git log --reverse --format="%H" origin/$TARGET_BRANCH..origin/$SOURCE_BRANCH)
59
+ COMMITS=$(git log --reverse --format="%H" origin/$TARGET_BRANCH..$SOURCE_SHA)
60
61
# Cherry-pick each commit
62
echo "Cherry-picking commits..."
0 commit comments