From d16fd153f04f1247d819fda68d652ea88511212f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20Miri=C4=87?= Date: Tue, 19 Jan 2021 11:58:40 +0100 Subject: [PATCH] Fix brew bump-formula-pr command The formula now uses a URL and SHA of the .zip package. --- .github/workflows/all.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/all.yml b/.github/workflows/all.yml index f4dd64f46bc8..c4d1d0a91c38 100644 --- a/.github/workflows/all.yml +++ b/.github/workflows/all.yml @@ -381,7 +381,10 @@ jobs: env: VERSION: ${{ needs.configure.outputs.version }} steps: + - name: Download source code archive + run: curl -fsSL "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/archive/${VERSION}.tar.gz" -o "${VERSION}.tar.gz" - name: Set up Homebrew uses: Homebrew/actions/setup-homebrew@2eb78889a50ba021d744837934f1af2d8c4458ec - name: Create version bump PR - run: brew bump-formula-pr k6 --tag="$VERSION" --revision="$GITHUB_SHA" + run: brew bump-formula-pr k6 --url="${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/archive/${VERSION}.tar.gz" \ + --sha256="$(shasum -a 256 ${VERSION}.tar.gz | cut -d' ' -f1)"