From 0fe40f42b0a42c36123abe9e951e5dbce22447cf Mon Sep 17 00:00:00 2001 From: xuwei-fit2cloud Date: Wed, 30 Jul 2025 11:17:58 +0800 Subject: [PATCH] refactor: update action ref_name --- .github/workflows/build_and_push.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build_and_push.yml b/.github/workflows/build_and_push.yml index 74f0a5d4..0c95c539 100644 --- a/.github/workflows/build_and_push.yml +++ b/.github/workflows/build_and_push.yml @@ -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: |