|
| 1 | +# https://github.com/ArcticFoxPro/wechat-miniprogram-oss-licenses-semiauto-gen |
| 2 | + |
| 3 | +# Copyright (c) 2025 ArcticFoxPro |
| 4 | +# WeChat MiniProgram OSS Licenses Semi-Auto Gen is licensed under Mulan PSL v2. |
| 5 | +# You can use this software according to the terms and conditions of the Mulan PSL v2. |
| 6 | +# You may obtain a copy of Mulan PSL v2 at: |
| 7 | +# http://license.coscl.org.cn/MulanPSL2 |
| 8 | +# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, |
| 9 | +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, |
| 10 | +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. |
| 11 | +# See the Mulan PSL v2 for more details. |
| 12 | + |
1 | 13 | name: Update OSS Licenses Dist |
2 | 14 |
|
3 | 15 | on: |
|
9 | 21 | update-oss-licenses-dist: |
10 | 22 | strategy: |
11 | 23 | matrix: |
12 | | - os: [ macos-latest ] |
| 24 | + os: [ windows-latest ] # 请根据您的微信小程序开发环境配置相应系统(如 `macos-latest`、`ubuntu-latest` 等),因为部分 npm 包在不同系统环境下分发的包名不一致 |
13 | 25 | runs-on: ${{ matrix.os }} |
14 | 26 | permissions: |
15 | 27 | contents: write |
|
37 | 49 | run: git fetch origin main |
38 | 50 |
|
39 | 51 | - name: Compare files (Windows) |
40 | | - if: matrix.os == 'windows-latest' |
| 52 | + if: matrix.os == 'windows-latest' || matrix.os == 'windows-2019' || matrix.os == 'windows-2022' |
41 | 53 | id: compare-files-windows |
42 | 54 | run: | |
43 | 55 | if ! git diff --exit-code origin/main; then |
|
48 | 60 | shell: bash |
49 | 61 |
|
50 | 62 | - name: Compare files |
51 | | - if: matrix.os != 'windows-latest' |
| 63 | + if: matrix.os != 'windows-latest' && matrix.os != 'windows-2019' && matrix.os != 'windows-2022' |
52 | 64 | id: compare-files |
53 | 65 | run: | |
54 | 66 | if ! git diff --exit-code origin/main; then |
|
61 | 73 | if: env.files_changed == 'true' |
62 | 74 | uses: peter-evans/create-pull-request@v4 |
63 | 75 | with: |
64 | | - title: '更新开源许可证信息' |
65 | | - body: '自动化更新 npm 依赖项的开放源代码信息' |
| 76 | + title: '更新开放源代码许可信息文件' |
| 77 | + body: '自动化更新 npm 依赖项的开放源代码许可信息文件' |
66 | 78 | branch: 'update-licenses' |
67 | 79 | commit-message: 'Update OSS Licenses Dist' |
68 | 80 | labels: 'auto-generated' |
0 commit comments