This is an automated email from the ASF dual-hosted git repository.

github-merge-queue[bot] pushed a commit to branch 
gh-readonly-queue/dev/pr-12550-4c874e2a4061aea9d5db65e74edeb211b498fe27
in repository https://gitbox.apache.org/repos/asf/seatunnel.git

commit acb0b5739c62fe43dd68e0d923fed1143bb52ce8
Author: David Zollo <[email protected]>
AuthorDate: Tue Sep 29 13:24:56 2026 +0000

    [Fix][CI] Use selected tag for Docker publishing (#12550)
---
 .github/workflows/publish-docker.yaml | 27 +--------------------------
 1 file changed, 1 insertion(+), 26 deletions(-)

diff --git a/.github/workflows/publish-docker.yaml 
b/.github/workflows/publish-docker.yaml
index 4cc64cb5df..98f08f5778 100644
--- a/.github/workflows/publish-docker.yaml
+++ b/.github/workflows/publish-docker.yaml
@@ -18,11 +18,6 @@ name: publish-docker
 
 on:
   workflow_dispatch:
-    inputs:
-      release_tag:
-        description: 'Existing release tag to publish (for example, v3.0.0)'
-        required: true
-        type: string
   push:
     tags:
       - '*'
@@ -36,39 +31,19 @@ env:
 
 jobs:
   build:
-    if: github.repository == 'apache/seatunnel'
+    if: github.repository == 'apache/seatunnel' && github.ref_type == 'tag'
     runs-on: ubuntu-latest
     permissions:
       contents: read
       packages: write
     timeout-minutes: 60
     steps:
-      - name: Validate manually selected release tag
-        if: github.event_name == 'workflow_dispatch'
-        env:
-          RELEASE_TAG: ${{ inputs.release_tag }}
-        run: |
-          case "${RELEASE_TAG}" in
-            '' | *[!0-9A-Za-z._-]*)
-              echo "release_tag must contain only letters, digits, dots, 
underscores, or hyphens."
-              exit 1
-              ;;
-          esac
-          if ! git ls-remote --exit-code --tags \
-            "https://github.com/${{ github.repository }}.git" \
-            "refs/tags/${RELEASE_TAG}" >/dev/null; then
-            echo "release_tag '${RELEASE_TAG}' does not exist in the remote 
repository."
-            exit 1
-          fi
       - uses: actions/checkout@v4
         with:
-          ref: ${{ github.event_name == 'workflow_dispatch' && 
inputs.release_tag || github.ref }}
           submodules: true
       - name: free disk space
         run: tools/github/free_disk_space.sh
       - uses: actions/checkout@v4
-        with:
-          ref: ${{ github.event_name == 'workflow_dispatch' && 
inputs.release_tag || github.ref }}
       - name: Cache local Maven repository
         uses: actions/cache@v4
         with:

Reply via email to