mirror of
https://git.bjxgj.com/xgj/xgj-actions.git
synced 2025-10-14 06:33:37 +08:00
chore: 更新 trigger-version GitHub Action 的使用方式,统一使用 actions/xgj/trigger-version@v1,确保文档示例与实际用法一致,提升可维护性和一致性。
This commit is contained in:
@@ -57,7 +57,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: 获取版本信息
|
- name: 获取版本信息
|
||||||
id: version-info
|
id: version-info
|
||||||
uses: ./trigger-version
|
uses: actions/xgj/trigger-version@v1
|
||||||
|
|
||||||
- name: 显示版本信息
|
- name: 显示版本信息
|
||||||
run: |
|
run: |
|
||||||
@@ -80,7 +80,7 @@ jobs:
|
|||||||
```yaml
|
```yaml
|
||||||
- name: 获取版本信息(自定义前缀)
|
- name: 获取版本信息(自定义前缀)
|
||||||
id: version-info
|
id: version-info
|
||||||
uses: ./trigger-version
|
uses: actions/xgj/trigger-version@v1
|
||||||
with:
|
with:
|
||||||
version-prefix: "release-"
|
version-prefix: "release-"
|
||||||
```
|
```
|
||||||
@@ -104,7 +104,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: 获取版本信息
|
- name: 获取版本信息
|
||||||
id: version-info
|
id: version-info
|
||||||
uses: ./trigger-version
|
uses: actions/xgj/trigger-version@v1
|
||||||
|
|
||||||
- name: 检查是否需要部署
|
- name: 检查是否需要部署
|
||||||
id: check-deploy
|
id: check-deploy
|
||||||
|
@@ -25,7 +25,7 @@ jobs:
|
|||||||
|
|
||||||
- name: 获取触发版本信息
|
- name: 获取触发版本信息
|
||||||
id: version-info
|
id: version-info
|
||||||
uses: ./trigger-version
|
uses: actions/xgj/trigger-version@v1
|
||||||
|
|
||||||
- name: 显示版本信息
|
- name: 显示版本信息
|
||||||
run: |
|
run: |
|
||||||
|
@@ -25,7 +25,7 @@ jobs:
|
|||||||
|
|
||||||
- name: 获取版本信息
|
- name: 获取版本信息
|
||||||
id: version-info
|
id: version-info
|
||||||
uses: ./trigger-version
|
uses: actions/xgj/trigger-version@v1
|
||||||
|
|
||||||
- name: 确定部署策略
|
- name: 确定部署策略
|
||||||
id: deployment-strategy
|
id: deployment-strategy
|
||||||
|
@@ -19,7 +19,7 @@ jobs:
|
|||||||
|
|
||||||
- name: 获取标准版本信息
|
- name: 获取标准版本信息
|
||||||
id: standard-version
|
id: standard-version
|
||||||
uses: ./trigger-version
|
uses: actions/xgj/trigger-version@v1
|
||||||
# 使用默认的 'v' 前缀
|
# 使用默认的 'v' 前缀
|
||||||
|
|
||||||
- name: 显示标准版本信息
|
- name: 显示标准版本信息
|
||||||
@@ -38,7 +38,7 @@ jobs:
|
|||||||
|
|
||||||
- name: 获取发布版本信息
|
- name: 获取发布版本信息
|
||||||
id: release-version
|
id: release-version
|
||||||
uses: ./trigger-version
|
uses: actions/xgj/trigger-version@v1
|
||||||
with:
|
with:
|
||||||
version-prefix: 'release-'
|
version-prefix: 'release-'
|
||||||
|
|
||||||
@@ -60,7 +60,7 @@ jobs:
|
|||||||
|
|
||||||
- name: 获取热修复版本信息
|
- name: 获取热修复版本信息
|
||||||
id: hotfix-version
|
id: hotfix-version
|
||||||
uses: ./trigger-version
|
uses: actions/xgj/trigger-version@v1
|
||||||
with:
|
with:
|
||||||
version-prefix: 'hotfix-'
|
version-prefix: 'hotfix-'
|
||||||
|
|
||||||
@@ -80,7 +80,7 @@ jobs:
|
|||||||
|
|
||||||
- name: 获取无前缀版本信息
|
- name: 获取无前缀版本信息
|
||||||
id: no-prefix-version
|
id: no-prefix-version
|
||||||
uses: ./trigger-version
|
uses: actions/xgj/trigger-version@v1
|
||||||
with:
|
with:
|
||||||
version-prefix: ''
|
version-prefix: ''
|
||||||
|
|
||||||
@@ -123,7 +123,7 @@ jobs:
|
|||||||
|
|
||||||
- name: 使用动态前缀获取版本信息
|
- name: 使用动态前缀获取版本信息
|
||||||
id: dynamic-version
|
id: dynamic-version
|
||||||
uses: ./trigger-version
|
uses: actions/xgj/trigger-version@v1
|
||||||
with:
|
with:
|
||||||
version-prefix: ${{ env.VERSION_PREFIX }}
|
version-prefix: ${{ env.VERSION_PREFIX }}
|
||||||
|
|
||||||
|
@@ -36,7 +36,7 @@ jobs:
|
|||||||
|
|
||||||
- name: 获取触发版本信息
|
- name: 获取触发版本信息
|
||||||
id: version-info
|
id: version-info
|
||||||
uses: ./trigger-version
|
uses: actions/xgj/trigger-version@v1
|
||||||
|
|
||||||
- name: 确定构建和部署策略
|
- name: 确定构建和部署策略
|
||||||
id: build-strategy
|
id: build-strategy
|
||||||
|
Reference in New Issue
Block a user