File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 1111 - cron : ' 55 * * * *'
1212
1313jobs :
14-
1514 sync-main :
1615 name : Sync-main
1716 runs-on : ubuntu-latest
@@ -31,25 +30,28 @@ jobs:
3130 git config user.name "github-actions[bot]"
3231 git config user.email "github-actions[bot]@users.noreply.github.com"
3332 git checkout -B sync-main-pr origin/sync-main-pr
34-
35- echo "::group::Fetch"
33+ - name : Sync origin/main
34+ shell : bash
35+ run : |
36+ echo "::group::Sync with main branch"
3637 git pull origin sync-main-pr; exitCode=$?; if [ $exitCode -ne 0 ]; then exitCode=0; fi
37- # git config pull.rebase true
3838 git pull origin main
3939 git push --force origin sync-main-pr
4040 echo "::endgroup::"
41-
41+ - name : Sync upstream/codeql-cli/latest
42+ shell : bash
43+ run : |
4244 echo "::group::Set up remote"
4345 git remote add upstream https://github.com/github/codeql.git
4446 git fetch upstream --tags --force
4547 echo "::endgroup::"
4648
47- echo "::group::Checkout and merge "
49+ echo "::group::Merge codeql-cli/latest "
4850 set -x
4951 git merge codeql-cli/latest
5052 set +x
5153 echo "::endgroup::"
52- - name : Push sync branch and ensure visibility
54+ - name : Push sync branch
5355 run : |
5456 git push origin sync-main-pr
5557 env :
You can’t perform that action at this time.
0 commit comments