Skip to content

Commit 8ce078e

Browse files
author
Dilan Bhalla
committed
unshallow fetch
1 parent 54716a8 commit 8ce078e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/sync-main.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
1616
steps:
1717
- name: Checkout
1818
uses: actions/checkout@v3
19+
with:
20+
fetch-depth: 0
1921
- name: Git config
2022
shell: bash
2123
run: |
@@ -25,12 +27,13 @@ jobs:
2527
shell: bash
2628
run: |
2729
set -x
28-
git fetch
30+
git fetch --unshallow
2931
git remote add upstream https://github.com/github/codeql.git
30-
git fetch upstream --tags --force
32+
git fetch upstream --unshallow --tags --force
3133
- name: Sync Main
3234
shell: bash
3335
run: |
36+
git log --oneline -20
3437
git merge codeql-cli/latest
3538
git push origin main
3639
git push origin --tags --force

0 commit comments

Comments
 (0)