From a10841da2b3da8b4d4ba0421155068260df91e6b Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Tue, 23 May 2023 00:18:57 +0200 Subject: [PATCH] remove trailing output from shasum Fixes: https://code.forgejo.org/forgejo/runner/issues/16 --- .forgejo/workflows/integration.yml | 4 +++- .forgejo/workflows/release.yml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/integration.yml b/.forgejo/workflows/integration.yml index 025fc3d..d855528 100644 --- a/.forgejo/workflows/integration.yml +++ b/.forgejo/workflows/integration.yml @@ -52,4 +52,6 @@ jobs: curl -L -sS $url/root/runner/releases/download/v1.2.3/forgejo-runner-amd64 > forgejo-runner chmod +x forgejo-runner ./forgejo-runner --version | grep 1.2.3 - + curl -L -sS $url/root/runner/releases/download/v1.2.3/forgejo-runner-amd64.sha256 > forgejo-runner.one + shasum -a 256 < forgejo-runner | cut -f1 -d ' ' > forgejo-runner.two + diff forgejo-runner.one forgejo-runner.two diff --git a/.forgejo/workflows/release.yml b/.forgejo/workflows/release.yml index f917cb1..09580ce 100644 --- a/.forgejo/workflows/release.yml +++ b/.forgejo/workflows/release.yml @@ -106,7 +106,7 @@ jobs: for arch in amd64 arm64; do docker create --platform linux/$arch --name runner ${{ steps.build.outputs.image }} docker cp runner:/bin/forgejo-runner release/forgejo-runner-$arch - shasum -a 256 < release/forgejo-runner-$arch > release/forgejo-runner-$arch.sha256 + shasum -a 256 < release/forgejo-runner-$arch | cut -f1 -d ' ' > release/forgejo-runner-$arch.sha256 docker rm runner done