Skip to content

Commit a894d69

Browse files
committed
Fetch PRs from upstream repo for cherry-picking
1 parent 771c5e3 commit a894d69

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/build-historical.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,17 @@ jobs:
112112
git config user.name "GitHub Actions"
113113
git config user.email "[email protected]"
114114
115+
UPSTREAM="https://github.com/TheSuperHackers/GeneralsGameCode.git"
116+
git remote add upstream "$UPSTREAM" || true
117+
115118
PR_LIST="${{ github.event.inputs.pull_requests }}"
116119
IFS=',' read -ra PRS <<< "$PR_LIST"
117120
118121
for PR in "${PRS[@]}"; do
119122
PR=$(echo "$PR" | xargs)
120123
echo "::group::Applying PR #$PR"
121124
122-
git fetch origin "pull/$PR/head:pr-$PR"
125+
git fetch upstream "pull/$PR/head:pr-$PR"
123126
124127
PR_BASE=$(git merge-base pr-$PR HEAD)
125128
PR_COMMITS=$(git rev-list --reverse "$PR_BASE..pr-$PR")

0 commit comments

Comments
 (0)