From 08de79fc455438db767943f1a21d04731d4fc87c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Smolarek?= <34063647+Razz4780@users.noreply.github.com> Date: Wed, 4 Sep 2024 11:08:19 +0200 Subject: [PATCH] Fix homebrew shasum (#2722) * Fixed release workflow * Changelog entry --- .github/workflows/release.yaml | 7 ++++--- changelog.d/homebrew-shasum-ci.fixed.md | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 changelog.d/homebrew-shasum-ci.fixed.md diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index eb31691f574..f47f404e461 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -312,11 +312,12 @@ jobs: path: /tmp/artifacts - uses: actions/checkout@v4 - name: Get release version and hashes + shell: bash # for -o pipefail, see https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#exit-codes-and-error-action-preference run: | echo "version=$(grep -m 1 version Cargo.toml | cut -d' ' -f3 | tr -d '\"' | cut -d'-' -f1)" >> $GITHUB_ENV - echo "sha256_mac=$(cat /tmp/artifacts/shasum/universal-apple-darwin/mirrord_mac_universal.shasum256 | awk '{ print $1 }')" >> $GITHUB_ENV - echo "sha256_linux_aarch64=$(cat /tmp/artifacts/shasum/aarch64-unknown-linux-gnu/mirrord_linux_aarch64.shasum256 | awk '{ print $1 }')" >> $GITHUB_ENV - echo "sha256_linux_x86_64=$(cat /tmp/artifacts/shasum/x86_64-unknown-linux-gnu/mirrord_linux_x86_64.shasum256 | awk '{ print $1 }')" >> $GITHUB_ENV + echo "sha256_mac=$(cat /tmp/artifacts/universal-apple-darwin/mirrord_mac_universal.shasum256 | awk '{ print $1 }')" >> $GITHUB_ENV + echo "sha256_linux_aarch64=$(cat /tmp/artifacts/aarch64-unknown-linux-gnu/mirrord_linux_aarch64.shasum256 | awk '{ print $1 }')" >> $GITHUB_ENV + echo "sha256_linux_x86_64=$(cat /tmp/artifacts/x86_64-unknown-linux-gnu/mirrord_linux_x86_64.shasum256 | awk '{ print $1 }')" >> $GITHUB_ENV - name: Checkout into homebrew-mirrord uses: actions/checkout@v4 with: diff --git a/changelog.d/homebrew-shasum-ci.fixed.md b/changelog.d/homebrew-shasum-ci.fixed.md new file mode 100644 index 00000000000..4c5556dbf17 --- /dev/null +++ b/changelog.d/homebrew-shasum-ci.fixed.md @@ -0,0 +1 @@ +Fixed upload of mirrord binaries' shasums to homebrew repository in the release action.