Skip to content

Commit ff62587

Browse files
author
赵明俊
committed
fix(ci): 修复 release.yml 在 push 事件下的 inputs 上下文错误
将 checkout ref 从 inputs.ref 改为 github.event.inputs.ref,避免非 workflow_dispatch 事件触发时工作流编译失败。 Made-with: Cursor
1 parent 2b50e3a commit ff62587

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
steps:
4646
- uses: actions/checkout@v4
4747
with:
48-
ref: ${{ inputs.ref || needs.release.outputs.tag || github.ref }}
48+
ref: ${{ github.event.inputs.ref || needs.release.outputs.tag || github.ref }}
4949

5050
- name: Set up Python
5151
uses: actions/setup-python@v5
@@ -122,7 +122,7 @@ jobs:
122122
steps:
123123
- uses: actions/checkout@v4
124124
with:
125-
ref: ${{ inputs.ref || needs.release.outputs.tag || github.sha }}
125+
ref: ${{ github.event.inputs.ref || needs.release.outputs.tag || github.sha }}
126126

127127
- name: Setup Node.js
128128
uses: actions/setup-node@v4

0 commit comments

Comments
 (0)