From 50f495627d0268252c33f780cfe4888e9ee6716b Mon Sep 17 00:00:00 2001 From: PgBiel <9021226+PgBiel@users.noreply.github.com> Date: Mon, 30 Sep 2024 19:13:03 -0300 Subject: [PATCH] fetch tags: take 2 --- .github/workflows/test-build.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-build.yaml b/.github/workflows/test-build.yaml index 23ce7daed..132af5360 100644 --- a/.github/workflows/test-build.yaml +++ b/.github/workflows/test-build.yaml @@ -41,7 +41,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 with: - fetch-tags: true + fetch-depth: 0 - name: Install Rust toolchain uses: dtolnay/rust-toolchain@stable @@ -65,6 +65,7 @@ jobs: shell: bash run: | # Get latest version + # https://stackoverflow.com/a/69708418 VERSION="$(git describe --tags "$(git rev-list --tags --max-count=1)")" if [ "${{ matrix.os }}" = "windows-latest" ]; then @@ -115,7 +116,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 with: - fetch-tags: true + fetch-depth: 0 - name: Install Rust toolchain uses: actions-rs/toolchain@v1 @@ -134,6 +135,7 @@ jobs: - name: Build wasm archive run: | # Get latest version + # https://stackoverflow.com/a/69708418 VERSION="$(git describe --tags "$(git rev-list --tags --max-count=1)")" ARCHIVE="glistix-$VERSION-browser.tar.gz"