Skip to content

Commit 61fcd82

Browse files
committed
[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 <amaury.pouly@lowrisc.org>
1 parent 07e04f0 commit 61fcd82

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

.github/workflows/create_release.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ jobs:
1313
contents: write
1414
env:
1515
BUILD_DIR: build
16-
BRANCH_NAME: ${{ github.event.repository.default_branch }}
1716
RELEASE_BIN_ARCHIVE: qemu-ot-earlgrey-${{ inputs.release_tag }}-x86_64-unknown-linux-gnu.tar.gz
1817
runs-on: ubuntu-22.04
1918
timeout-minutes: 10
@@ -45,7 +44,7 @@ jobs:
4544
GH_TOKEN: ${{ github.token }}
4645
run: |
4746
gh release create \
48-
--target "$BRANCH_NAME" \
47+
--target "$GITHUB_SHA" \
4948
${{ inputs.release_tag }} \
5049
--generate-notes \
5150
"$RELEASE_BIN_ARCHIVE#QEMU system emulator"

0 commit comments

Comments
 (0)