Skip to content

Commit e4f0487

Browse files
committed
ci: move git config back to last stage
Can't use run in the checkout stage and use `with`.
1 parent 53b1268 commit e4f0487

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/release.yaml

+2-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ jobs:
1616
uses: actions/checkout@v2
1717
with:
1818
fetch-depth: 0
19-
run: |
20-
git config user.name "$(git log -1 --format=format:%aN)"
21-
git config user.email "$(git log -1 --format=format:%aE)"
2219

2320
- name: Set up Go
2421
uses: actions/setup-go@v2
@@ -30,4 +27,6 @@ jobs:
3027
RELEASE_DRY_RUN: "false"
3128
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3229
run: |
30+
git config user.name "$(git log -1 --format=format:%aN)"
31+
git config user.email "$(git log -1 --format=format:%aE)"
3332
make release

0 commit comments

Comments
 (0)