From 87cd7bfc8ecedcbd934be6f96004addaf34e7590 Mon Sep 17 00:00:00 2001 From: Lewis Chambers Date: Thu, 30 May 2024 14:33:23 +0100 Subject: [PATCH] Using ref_name --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fc8b7a2..5a0db9a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,7 +26,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} tag: ${{ github.ref_name }} run: | - git fetch --unshallow origin +refs/heads/${{github.base_ref}}:refs/remotes/origin/${{github.base_ref}} + git fetch --unshallow origin +refs/heads/${{ github.ref_name }}:refs/remotes/origin/${{ github.ref_name }} git describe --long tag=$(python -c "import iotdevicesimulator; print(iotdevicesimulator.__version__)") echo $tag