Skip to content

Commit 0d40476

Browse files
authored
Update sync-main.yml
1 parent e2bac16 commit 0d40476

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/sync-main.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,13 @@ jobs:
3333
git config user.email "github-actions[bot]@users.noreply.github.com"
3434
- name: Add and fetch upstream
3535
run: |
36-
echo "::group::Fetch and set up remotes"
36+
echo "::group::Fetch"
3737
git fetch
38+
git checkout main
39+
git pull origin main
40+
echo "::endgroup::"
41+
42+
echo "::group::Set up remote"
3843
git remote add upstream https://github.com/github/codeql.git
3944
git fetch upstream --tags --force
4045
echo "::endgroup::"

0 commit comments

Comments
 (0)