Skip to content

Commit b6af482

Browse files
GHA: improve detection if branch exists on nrf upmerge
to check if branch exists we have to check Signed-off-by: Robert Gałat <robert.galat@nordicsemi.no>
1 parent 60ee172 commit b6af482

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/nrf-upmerge-pr.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
git fetch --all
4747
4848
# Check if PR branch exists
49-
if git show-ref --verify --quiet refs/heads/$BRANCH_NAME; then
49+
if git show-ref --verify --quiet refs/remotes/origin/$BRANCH_NAME; then
5050
echo "Branch $BRANCH_NAME exists, checking PR status..."
5151
5252
# Check if PR exists and is open

0 commit comments

Comments
 (0)