Skip to content

Commit 4b47065

Browse files
committed
Modify fetch command to ensure local main branch is up to date
1 parent 30ba566 commit 4b47065

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/rc.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ jobs:
2929
ref: ${{ steps.get_branch.outputs.branch }}
3030
fetch-depth: 0
3131

32-
- name: Fetch main branch
32+
- name: Ensure local main branch exists and is up to date
3333
run: |
34-
git fetch origin main:refs/remotes/origin/main
35-
git branch -a
34+
git fetch origin main
35+
git branch main origin/main
3636
3737
- uses: actions/setup-go@v4
3838
with:
@@ -53,7 +53,6 @@ jobs:
5353
- name: checkIfCommitHelperGoWillBePublished
5454
id: checkCommitHelperGo
5555
run: |
56-
git fetch origin main:refs/remotes/origin/main
5756
pnpm changeset status > changeset-status.txt
5857
isPublished=$(grep -q "@naverpay/commithelper-go" changeset-status.txt && echo "true" || echo "false")
5958
if [ "$isPublished" = "false" ]; then

0 commit comments

Comments
 (0)