Skip to content

Commit

Permalink
fix sha256 when bumping brew (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
strokyl authored May 2, 2024
1 parent 35bdca0 commit d3a5f6a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ jobs:
echo BRANCH $BRANCH
export BASE_BRANCH=main
echo BASE_BRANCH $BASE_BRANCH
VERIF_SHA=$(curl -s -L https://github.com/conduktor/ctl/archive/refs/tags/${APP_VERSION}.tar.gz | sha256sum | cut -f 1 -d " ")
echo VERIF_SHA $VERIF_SHA
export TITLE="Bump conduktor-ctl version to ${APP_VERSION}"
export BODY="Release https://github.com/conduktor/ctl/releases/tag/${APP_VERSION}"
Expand All @@ -86,11 +88,13 @@ jobs:
git config user.email [email protected]
git checkout -b $BRANCH
sed -i 's/version "[^"]*"/version "'"$APP_VERSION"'"/' Formula/conduktor-cli.rb
sed -i 's/sha256 "[^"]*"/sha256 "'"$VERIF_SHA"'"/' Formula/conduktor-cli.rb
sed -i 's/gitSha\s*=\s*"[^"]*"/gitSha = "'"$APP_SHA"'"/' Formula/conduktor-cli.rb
git add Formula/conduktor-cli.rb
git commit -m "$MESSAGE"
git push origin $BRANCH
gh pr create --title "$TITLE" --body "$BODY" --repo 'https://github.com/conduktor/homebrew-brew' --base $BASE_BRANCH
gh pr merge --auto --squash --delete-branch
cd ..
build-docker:
Expand Down

0 comments on commit d3a5f6a

Please sign in to comment.