Skip to content

Commit 481e6ad

Browse files
committed
ci: ci envs
1 parent c31c23b commit 481e6ad

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,11 @@ on:
77
workflow_dispatch:
88
jobs:
99
build:
10-
strategy:
11-
matrix:
12-
include:
13-
- NodeVersion: 20.9.x
14-
NodeVersionDisplayName: 20
15-
OS: ubuntu-latest
16-
name: Node.js v${{ matrix.NodeVersionDisplayName }} (${{ matrix.OS }})
17-
runs-on: ${{ matrix.OS }}
10+
runs-on: ubuntu-latest
11+
env:
12+
NODE_VERSION: '18'
13+
GIT_USER_NAME: 'mocayo'
14+
GIT_USER_EMAIL: 'qihai@bytedance.com'
1815
steps:
1916
- uses: actions/checkout@v3
2017
with:
@@ -23,12 +20,12 @@ jobs:
2320
- name: Config Git User
2421
# should be turn to ci user
2522
run: |
26-
git config --local user.name "mocayo"
27-
git config --local user.email "qihai@bytedance.com"
23+
git config --local user.name ${{ env.GIT_USER_NAME }}
24+
git config --local user.email ${{ env.GIT_USER_EMAIL }}
2825
2926
- uses: actions/setup-node@v3
3027
with:
31-
node-version: ${{ matrix.NodeVersion }}
28+
node-version: ${{ env.NODE_VERSION }}
3229

3330
- name: Cache
3431
uses: actions/cache@v4

0 commit comments

Comments
 (0)