From 8e4f1920c718e74de320d4cf063801c1c59c8e67 Mon Sep 17 00:00:00 2001 From: Federico Terzi Date: Mon, 4 Oct 2021 21:36:15 +0200 Subject: [PATCH] fix(ci): use hash instead of branch name --- .github/workflows/release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 91fc518..550e654 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,12 +36,14 @@ jobs: - uses: actions/checkout@v2 - name: Create new release (if it doesn't exist yet) run: | + COMMIT_HASH=$(git rev-list --max-count=1 HEAD) echo "Creating release: ${{ needs.extract-version.outputs.espanso_version }}" + echo "for hash: $COMMIT_HASH" gh release create ${{ needs.extract-version.outputs.espanso_version }} \ -t ${{ needs.extract-version.outputs.espanso_version }} \ --notes "Automatically released by CI" \ --prerelease \ - --target ${GITHUB_REF##*/} + --target $COMMIT_HASH windows: needs: ["extract-version", "create-release"]