From 71c2b4fa8e1a46d3e867434610110b11ec6b53a4 Mon Sep 17 00:00:00 2001 From: Pranav Gaddamadugu <23022326+d0cd@users.noreply.github.com> Date: Tue, 19 Nov 2024 20:37:31 -0800 Subject: [PATCH] Temporary fix for release --- .github/workflows/release.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 90b43c0ca0..25d856f455 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -64,6 +64,7 @@ jobs: - uses: actions/checkout@v3 with: submodules: true + fetch-depth: 0 - name: Install Rust uses: dtolnay/rust-toolchain@stable @@ -103,9 +104,17 @@ jobs: cd .. mv tempdir/leo-${{ steps.get_version.outputs.version }}-x86_64-unknown-linux-musl.zip . + - name: Set tag ref + run: echo "TAG_REF=refs/tags/${{ github.event.inputs.tag }}" >> $GITHUB_ENV + + - name: Debug GitHub Context + run: | + echo "GITHUB_REF=${{ github.ref }}" + echo "GITHUB_REF_TYPE=${{ github.ref_type }}" + - name: Release uses: softprops/action-gh-release@v1 - if: startsWith(github.ref, 'refs/tags/') + if: startsWith(env.TAG_REF, 'refs/tags/') with: files: | leo-${{ steps.get_version.outputs.version }}-x86_64-unknown-linux-musl.zip