fix: Use printf
Some checks failed
tofu plan k8s-wheatley / tofu-plan-k8s-wheatley (pull_request) Failing after 5s

This commit is contained in:
Peter 2025-11-29 12:25:24 +01:00
parent 9ae4963476
commit d44e242de3
Signed by: Peter
SSH key fingerprint: SHA256:B5tYaxBExaDm74r1px9iVeZ6F/ZDiyiy9SbBqfZYrvg

View file

@ -34,11 +34,7 @@ jobs:
curl -L https://github.com/opentofu/opentofu/releases/download/v${{ env.TOFU_VERSION }}/${{ env.TOFU_ARCHIVE }} -o ${{ env.TOFU_ARCHIVE }} curl -L https://github.com/opentofu/opentofu/releases/download/v${{ env.TOFU_VERSION }}/${{ env.TOFU_ARCHIVE }} -o ${{ env.TOFU_ARCHIVE }}
echo "Downloaded OpenTofu ✅" echo "Downloaded OpenTofu ✅"
echo "Verifying checksum..." echo "Verifying checksum..."
if echo ${{ env.TOFU_CHECKSUM }} ${{ env.TOFU_ARCHIVE }} | sha256sum --check --status; then printf "%s %s" "${{ env.TOFU_CHECKSUM }}" "${{ env.TOFU_ARCHIVE }}" | sha256sum --check --status; then
echo "Checksum OK ✅"
else
echo "Checksum mismatch! ❌"
exit 1
working-directory: /tmp working-directory: /tmp