mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-05-07 00:39:00 +08:00
fix(ci): 修复PR扫描的基线和头版本配置
- 将基础提交哈希从 github.event.before 更新为 github.event.pull_request.base.sha - 将当前提交哈希从 github.sha 更新为 github.event.pull_request.head.sha - 确保PR工作流正确比较基线和目标分支的差异
This commit is contained in:
parent
2329cba3a6
commit
a01ec8d29c
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@ -67,9 +67,9 @@ jobs:
|
||||
# 扫描路径,. 表示扫描整个仓库
|
||||
path: .
|
||||
# 基础提交哈希,用于与当前提交进行比较
|
||||
base: ${{ github.event.before }}
|
||||
base: ${{ github.event.pull_request.base.sha }}
|
||||
# 当前提交哈希,作为扫描的目标版本
|
||||
head: ${{ github.sha }}
|
||||
head: ${{ github.event.pull_request.head.sha }}
|
||||
|
||||
# 构建和测试 job(并行执行)
|
||||
build-and-test:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user