refactor: update action ref_name

This commit is contained in:
xuwei-fit2cloud
2025-07-30 11:17:58 +08:00
parent 383abc1ee1
commit 0fe40f42b0
+2 -6
View File
@@ -5,10 +5,6 @@ run-name: 构建镜像并推送仓库 ${{ github.event.inputs.dockerImageTag }}
on:
workflow_dispatch:
inputs:
branch:
description: 'Branch'
required: true
default: "main"
dockerImageTag:
description: 'Image Tag'
default: 'v0.9.0'
@@ -45,7 +41,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.branch }}
ref: ${{ github.ref_name }}
- name: Prepare
id: prepare
run: |
@@ -80,7 +76,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.branch }}
ref: ${{ github.ref_name }}
- name: Prepare
id: prepare
run: |