From fc7cdece14d4f3e44692bdfa2e87b5584e619adc Mon Sep 17 00:00:00 2001 From: Yi-Hsuan Deng Date: Mon, 2 Nov 2026 09:12:02 +0000 Subject: [PATCH] [ot] .github/workflows: create_release: target triggering branch Use the triggering branch ref (`github.ref_name` / `github.ref`) instead of forcing the repository default branch, allowing releases to be generated from any branch selected when dispatching the workflow. Signed-off-by: Yi-Hsuan Deng Change-Id: I1ef845b342d60b0d68bbd592e348c62d6a6a6964 --- .github/workflows/create_release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml index 2091ed9319f0d..2ce83d0497690 100644 --- a/.github/workflows/create_release.yml +++ b/.github/workflows/create_release.yml @@ -13,13 +13,15 @@ jobs: contents: write env: BUILD_DIR: build - BRANCH_NAME: ${{ github.event.repository.default_branch }} + BRANCH_NAME: ${{ github.ref_name }} RELEASE_BIN_ARCHIVE: qemu-ot-earlgrey-${{ inputs.release_tag }}-x86_64-unknown-linux-gnu.tar.gz runs-on: ubuntu-22.04 timeout-minutes: 10 steps: - name: Check out repository uses: actions/checkout@v3 + with: + ref: ${{ github.ref }} # Update the package index, then install all dependencies listed in # the various apt-requirements.txt files in the project. - name: Install Dependencies