From 0523833432b142e344b02df53706e1f199c6ac9d Mon Sep 17 00:00:00 2001 From: Tobiasz Laskowski Date: Fri, 4 Sep 2026 09:19:30 +0100 Subject: [PATCH] [ci] Release from commit instead of branch name The branch may have moved since the package workflow started, so we need to make sure we release from the original commit that triggered the workflow to avoid multiple releases being created from the head of the master branch. --- .github/workflows/package.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index 0c61c65dc..1a74c5298 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -135,7 +135,7 @@ jobs: uses: ncipollo/release-action@v1 with: tag: v${{ env.hxcpp_release }} - commit: ${{ github.ref }} + commit: ${{ github.sha }} name: Release ${{ env.hxcpp_release }} draft: false prerelease: false