Skip to content

Commit 983e489

Browse files
committed
ci: 更新开源许可证信息
- 将运行环境从 Windows 改为 macOS - 修改 PR 标题和描述为中文 - 更新 commit message 为中文
1 parent 1c6ebc0 commit 983e489

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/update-oss-licenses-dist.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ on:
77

88
jobs:
99
update-oss-licenses-dist:
10-
runs-on: windows-latest
10+
strategy:
11+
matrix:
12+
os: [ macos-latest ]
13+
runs-on: ${{ matrix.os }}
1114
permissions:
1215
contents: write
1316
pull-requests: write
@@ -41,13 +44,14 @@ jobs:
4144
else
4245
echo "files_changed=false" >> $GITHUB_ENV
4346
fi
47+
shell: ${{ matrix.os == 'windows-latest' && 'bash' || 'sh' }}
4448

4549
- name: Create Pull Request
4650
if: env.files_changed == 'true'
4751
uses: peter-evans/create-pull-request@v4
4852
with:
49-
title: '更新开源许可证信息(OSSLicensesDist.js)'
50-
body: '自动化更新 OSSLicensesDist.js'
53+
title: '更新开源许可证信息'
54+
body: '自动化更新 npm 依赖项的开放源代码信息'
5155
branch: 'update-licenses'
52-
commit-message: 'Update OSSLicensesDist.js'
56+
commit-message: 'Update OSS Licenses Dist'
5357
labels: 'auto-generated'

0 commit comments

Comments
 (0)