fix: 更新 cache-state 示例文件,修正 GitHub Action 使用路径,从 .actions/xgj/cache-state@v1 修改为 actions/xgj/cache-state@v1,以确保正确引用和执行缓存状态管理功能。

This commit is contained in:
Lyda
2025-08-21 13:17:19 +08:00
parent b42f928523
commit 210d257b44
5 changed files with 62 additions and 62 deletions

View File

@@ -20,7 +20,7 @@ jobs:
- name: 获取或设置应用版本
id: app-version
uses: .actions/xgj/cache-state@v1
uses: actions/xgj/cache-state@v1
with:
state-key: 'application-version'
state-value: ${{ github.event.inputs.version }}
@@ -45,7 +45,7 @@ jobs:
fi
- name: 记录构建状态
uses: .actions/xgj/cache-state@v1
uses: actions/xgj/cache-state@v1
with:
state-key: 'last-build-status'
state-value: 'success'
@@ -53,7 +53,7 @@ jobs:
- name: 获取构建历史
id: build-history
uses: .actions/xgj/cache-state@v1
uses: actions/xgj/cache-state@v1
with:
state-key: 'build-count'
state-value: '1'
@@ -68,7 +68,7 @@ jobs:
echo "新的构建次数: ${NEW_COUNT}"
- name: 保存新的构建计数
uses: .actions/xgj/cache-state@v1
uses: actions/xgj/cache-state@v1
with:
state-key: 'build-count'
state-value: ${{ env.NEW_COUNT }}