From 7684b036a131ac77e76ade54375a5e371d816e1b Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Thu, 18 Jun 2026 23:23:39 +0200 Subject: [PATCH] [ot] .github/workflows: create_release: fix the release workflow The workflow was checking out the default branch instead of the ref on which the workflow was triggered. Signed-off-by: Amaury Pouly --- .github/workflows/create_release.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml index 2091ed9319f0d..9321736dd17e8 100644 --- a/.github/workflows/create_release.yml +++ b/.github/workflows/create_release.yml @@ -13,7 +13,6 @@ jobs: contents: write env: BUILD_DIR: build - BRANCH_NAME: ${{ github.event.repository.default_branch }} RELEASE_BIN_ARCHIVE: qemu-ot-earlgrey-${{ inputs.release_tag }}-x86_64-unknown-linux-gnu.tar.gz runs-on: ubuntu-22.04 timeout-minutes: 10 @@ -45,7 +44,7 @@ jobs: GH_TOKEN: ${{ github.token }} run: | gh release create \ - --target "$BRANCH_NAME" \ + --target "$GITHUB_SHA" \ ${{ inputs.release_tag }} \ --generate-notes \ "$RELEASE_BIN_ARCHIVE#QEMU system emulator"