Skip to content

Commit 4c630a0

Browse files
committed
fix(ci): move fetch and reset of main to build job to get latest commit with CHANGELOG.md
1 parent d0d2e7d commit 4c630a0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/semantic-release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,6 @@ jobs:
103103
with:
104104
fetch-depth: 0
105105

106-
- name: Fetch latest refs explicitly
107-
run: |
108-
git fetch origin main
109-
git fetch --tags
110-
git reset --hard origin/main
111-
112106
- name: Determine version
113107
id: version
114108
run: |
@@ -154,6 +148,12 @@ jobs:
154148
with:
155149
fetch-depth: 0
156150

151+
- name: Fetch latest refs explicitly
152+
run: |
153+
git fetch origin main
154+
git fetch --tags
155+
git reset --hard origin/main
156+
157157
- name: Log in to Docker Hub
158158
run: echo "${{ secrets.DOCKER_TOKEN }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
159159

0 commit comments

Comments
 (0)