Skip to content

Commit b85335f

Browse files
authored
fix: Update release.yml (#181)
Adds fetch-depth; removes comments.
1 parent 7fbd4de commit b85335f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838
uses: actions/checkout@v3
3939
with:
4040
token: ${{ secrets.GH_MERGE_TOKEN }}
41+
fetch-depth: 0
4142

4243
- name: Clear Git config cache
4344
run: |
@@ -76,8 +77,8 @@ jobs:
7677

7778
- name: Force Checkout dist and Overwrite
7879
run: |
79-
git fetch origin main # Ensure we have the latest main
80-
git checkout -B dist origin/main # Force checkout of dist, overwriting with main
80+
git fetch origin main
81+
git checkout -B dist origin/main
8182
git add dist
8283
git commit -m "Update dist folder"
8384
git push --force origin dist

0 commit comments

Comments
 (0)