From 9a640632aa2f2b2befb74525cf4bf611a91cb145 Mon Sep 17 00:00:00 2001 From: Yiling-J Date: Mon, 5 Oct 2026 09:48:48 +0800 Subject: [PATCH] ci(release): allow manual Docker image build from external PR (#450) --- .github/workflows/release.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index b3c0dbc5..93478794 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -10,6 +10,10 @@ on: description: 'Docker image tag (e.g. feature-vaapi)' required: false type: string + pr: + description: 'Pull request number (e.g. 449)' + required: false + type: string jobs: build-and-push: @@ -21,6 +25,8 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 + with: + ref: ${{ inputs.pr && format('refs/pull/{0}/head', inputs.pr) || github.ref }} # Set up Docker Buildx - name: Set up Docker Buildx