Skip to content

Commit 5f113d5

Browse files
committed
ci: GH-3 Adding fetch-depth 0 to make git operations work
1 parent e28e033 commit 5f113d5

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/changesets-publish.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
1616
steps:
1717
- name: Checkout
1818
uses: actions/checkout@v6
19+
with:
20+
fetch-depth: 0 # Need full history for git operations
1921

2022
- name: Setup Go
2123
uses: actions/setup-go@v6
@@ -44,6 +46,8 @@ jobs:
4446
steps:
4547
- name: Checkout
4648
uses: actions/checkout@v6
49+
with:
50+
fetch-depth: 0 # Need full history for git operations
4751

4852
- name: Setup Go
4953
uses: actions/setup-go@v6

.github/workflows/changesets-version-pr.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ jobs:
1515
steps:
1616
- name: Checkout
1717
uses: actions/checkout@v6
18+
with:
19+
fetch-depth: 0 # Need full history for git operations
1820

1921
- name: Configure Git
2022
run: |

0 commit comments

Comments
 (0)