mirror of
https://github.com/github/codeql.git
synced 2026-05-25 00:27:09 +02:00
Update sync-main.yml
This commit is contained in:
3
.github/workflows/sync-main.yml
vendored
3
.github/workflows/sync-main.yml
vendored
@@ -30,10 +30,11 @@ jobs:
|
||||
run: |
|
||||
git config user.name "github-actions[bot]"
|
||||
git config user.email "github-actions[bot]@users.noreply.github.com"
|
||||
git checkout -b sync-main-pr
|
||||
git checkout -B sync-main-pr origin/sync-main-pr
|
||||
|
||||
echo "::group::Fetch"
|
||||
git pull origin sync-main-pr; exitCode=$?; if [ $exitCode -ne 0 ]; then exitCode=0; fi
|
||||
git config pull.rebase true
|
||||
git pull origin main
|
||||
git push --force origin sync-main-pr
|
||||
echo "::endgroup::"
|
||||
|
||||
Reference in New Issue
Block a user