diff --git a/.github/workflows/smoketest.yml b/.github/workflows/smoketest.yml index 252b40654d..c3d50d65e1 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 -L "$release_url" --output last-release.linux-amd64.tar.gz - name: Replace deployment with release images run: | set -euo pipefail