From e0e1a0d1c7ea883cf9ed5fad1cfb68aa3f771e7b Mon Sep 17 00:00:00 2001 From: Bastian Block Date: Tue, 9 Feb 2021 13:08:42 +0100 Subject: [PATCH] chore: fix use correct commit for release --- .github/workflows/release.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 421381d4..64ff82eb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -90,6 +90,11 @@ jobs: env: BUILD_TOOLS_VERSION: "30.0.2" + - name: Get last commit id + if: ${{ steps.changelog.outputs.skipped == 'false' }} + id: get_commit + run: echo "::set-output name=sha::$(git rev-parse HEAD)" + - name: Create Release id: create_release uses: actions/create-release@v1 @@ -97,6 +102,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.github_token }} with: + commitish: ${{ steps.get_commit.outputs.sha }} tag_name: ${{ steps.changelog.outputs.tag }} release_name: ${{ steps.changelog.outputs.tag }} body: ${{ steps.changelog.outputs.changelog }}