From 3e05373ad607e61f7150eb08ab5e5410dc5567ca Mon Sep 17 00:00:00 2001 From: Safeer Jiwan Date: Tue, 8 Oct 2024 13:19:58 -0700 Subject: [PATCH] fix --- .github/workflows/smoketest.yml | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/.github/workflows/smoketest.yml b/.github/workflows/smoketest.yml index 252b40654d..4e8a124328 100644 --- a/.github/workflows/smoketest.yml +++ b/.github/workflows/smoketest.yml @@ -21,21 +21,27 @@ jobs: run: | latest_release=$(git tag --sort=-v:refname | grep -v v1 | head -n 1) echo "Latest release: $latest_release" - echo "LATEST_RELEASE=$latest_release" >> "$GITHUB_ENV" + echo "LATEST_VERSION=${latest_release#v}" >> "$GITHUB_ENV" - name: Check out the last tagged release uses: actions/checkout@v4 with: - ref: ${{ env.LATEST_RELEASE }} + ref: v${{ env.LATEST_VERSION }} fetch-depth: 1 fetch-tags: true - - name: Download the release images - uses: dsaltares/fetch-gh-release-asset@master - with: - repo: TBD54566975/ftl.git - version: tags/${{ env.LATEST_RELEASE }} - file: ftl-${{ env.LATEST_RELEASE:1 }}.linux-arm64.tar.gz - token: ${{ secrets.GITHUB_TOKEN }} - target: last-release.linux-arm64.tar.gz + # - name: Download the release images + # uses: dsaltares/fetch-gh-release-asset@master + # with: + # repo: TBD54566975/ftl.git + # version: tags/v${{ env.LATEST_VERSION }} + # file: ftl-${{ env.LATEST_VERSION }}.linux-arm64.tar.gz + # token: ${{ secrets.GITHUB_TOKEN }} + # target: last-release.linux-arm64.tar.gz + - name: Download the last tagged release asset + run: | + set -euo pipefail + release_url="https://github.com/TBD54566975/ftl/releases/download/v${{ env.LATEST_VERSION }}/ftl-{{ env.LATEST_VERSION }}.linux-amd64.tar.gz" + echo "Fetching latest release asset from: $release_url" + curl -s $RELEASE_URL -o last-release.linux-amd64.tar.gz - name: Replace deployment with release images run: | set -euo pipefail