mirror of
https://github.com/github/codeql-action
synced 2026-05-23 20:00:54 +03:00
Ensure we check out the base branch, before creating the mergeback branch
This commit is contained in:
@@ -63,6 +63,9 @@ jobs:
|
||||
run: |
|
||||
set -x
|
||||
|
||||
# Checkout the base branch, since we may be testing on a different branch
|
||||
git checkout "$BASE_BRANCH"
|
||||
|
||||
# Generate a new branch name for the mergeback PR
|
||||
short_sha="${GITHUB_SHA:0:8}"
|
||||
NEW_BRANCH="mergeback/${VERSION}-to-${BASE_BRANCH}-${short_sha}"
|
||||
|
||||
Reference in New Issue
Block a user