Skip to content

Commit cec113b

Browse files
fix: git setup user name should use GITLAB_CI_USER_NAME (#95)
Co-authored-by: JounQin <admin@1stg.me>
1 parent 140b95b commit cec113b

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.changeset/brave-zebras-attend.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'changesets-gitlab': patch
3+
---
4+
5+
fix: git setup user name should use GITLAB_CI_USER_NAME

src/gitUtils.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ import { exec } from '@actions/exec'
33
import { execWithOutput, identify } from './utils.js'
44

55
export const setupUser = async () => {
6-
await exec('git', ['config', 'user.name', process.env.GITLAB_USER_NAME!])
6+
await exec('git', [
7+
'config',
8+
'user.name',
9+
process.env.GITLAB_CI_USER_NAME || process.env.GITLAB_USER_NAME!,
10+
])
711
await exec('git', [
812
'config',
913
'user.email',

0 commit comments

Comments
 (0)