Skip to content

Commit

Permalink
Bump version in homebrew-brew
Browse files Browse the repository at this point in the history
  • Loading branch information
strokyl committed May 2, 2024
1 parent 32f1db7 commit 9c5044c
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,39 @@ concurrency:
cancel-in-progress: ${{ github.ref != format('refs/heads/{0}', 'main') }}

jobs:
name: Update conduktor-ctl on homebrew
env:
GITHUB_TOKEN: ${{ secrets.CONDUKTORBOT_GHCR_RW }}
APP_VERSION: 0.2.1
APP_SHA: ${{ github.sha }}
with:
repository: 'conduktor/homebrew-brew'
ref: ${{ github.ref_name }}
path: homebrew-brew
token: ${{ secrets.CONDUKTORBOT_GHCR_RW }}
run: |
yq --version
gh version
gh auth status
export BRANCH=update_console-plus_$APP_VERSION
echo BRANCH $BRANCH
export BASE_BRANCH=${{ github.ref_name }}
echo BASE_BRANCH $BASE_BRANCH
export TITLE="Bump conduktor-ctl version to ${APP_VERSION}"
export BODY="Release https://github.com/conduktor/ctl/releases/tag/${APP_VERSION}"
export MESSAGE="${TITLE} .${BODY}"
echo TITLE $TITLE
echo BODY $BODY
echo MESSAGE $MESSAGE
cd homebrew-brew
sed -i 's/version "[^"]*"/version "${APP_VERSION}"/' Formula/conduktor-cli.rb
sed -i 's/gitSha\s*=\s*"[^"]*"/gitSha = "${APP_SHA}"/' Formula/conduktor-cli.rb
git add Formula/conduktor-cli.rb
gh pr create --title "$TITLE" --body "$BODY" --repo 'https://github.com/conduktor/platform-build' --base $BASE_BRANCH
gh pr merge --auto --squash --delete-branch
cd ..
update_release_draft:
runs-on: ubuntu-latest
if: ${{ github.ref == format('refs/heads/{0}', 'main') }}
Expand Down

0 comments on commit 9c5044c

Please sign in to comment.