diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index ba6747c2..4513b742 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -64,8 +64,18 @@ jobs: cache: false - name: install autotag binary + # To bump: update AUTOTAG_VERSION and fetch the new SHA from the release's + # checksums.txt (autotag__checksums.txt, line matching 'autotag_linux_amd64$'). + env: + AUTOTAG_VERSION: 1.4.3 + AUTOTAG_SHA256: 85e7ec97d732800bb838085fd3f2e19b2aa2ee3a8da0db7fd0aaf4113a279f3a run: | - curl -sL https://git.io/autotag-install | sh -s -- -b "${RUNNER_TEMP}/bin" + set -euo pipefail + mkdir -p "${RUNNER_TEMP}/bin" + curl -fsSLo "${RUNNER_TEMP}/bin/autotag" \ + "https://github.com/autotag-dev/autotag/releases/download/v${AUTOTAG_VERSION}/autotag_linux_amd64" + echo "${AUTOTAG_SHA256} ${RUNNER_TEMP}/bin/autotag" | sha256sum -c - + chmod +x "${RUNNER_TEMP}/bin/autotag" echo "${RUNNER_TEMP}/bin" >> $GITHUB_PATH - name: Install GoReleaser