Skip to content

Commit 0fe40f4

Browse files
refactor: update action ref_name
1 parent 383abc1 commit 0fe40f4

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

.github/workflows/build_and_push.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ run-name: 构建镜像并推送仓库 ${{ github.event.inputs.dockerImageTag }}
55
on:
66
workflow_dispatch:
77
inputs:
8-
branch:
9-
description: 'Branch'
10-
required: true
11-
default: "main"
128
dockerImageTag:
139
description: 'Image Tag'
1410
default: 'v0.9.0'
@@ -45,7 +41,7 @@ jobs:
4541
- name: Checkout
4642
uses: actions/checkout@v4
4743
with:
48-
ref: ${{ github.event.inputs.branch }}
44+
ref: ${{ github.ref_name }}
4945
- name: Prepare
5046
id: prepare
5147
run: |
@@ -80,7 +76,7 @@ jobs:
8076
- name: Checkout
8177
uses: actions/checkout@v4
8278
with:
83-
ref: ${{ github.event.inputs.branch }}
79+
ref: ${{ github.ref_name }}
8480
- name: Prepare
8581
id: prepare
8682
run: |

0 commit comments

Comments
 (0)