From 6164308c442073b0676820efa821b54f2442359a Mon Sep 17 00:00:00 2001 From: Dmitry Maslennikov Date: Thu, 23 Mar 2023 11:22:20 +0400 Subject: [PATCH] automate brew update --- .github/workflows/ci.yml | 25 +++++++++++++++++++++++++ requirements-iris.txt | 2 +- 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bba3aeb..15320e1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -122,3 +122,28 @@ jobs: run: docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} - name: Build and push Docker images run: make push + + homebrew: + needs: build + if: github.event_name == 'release' + name: Bump Homebrew formula + runs-on: ubuntu-latest + steps: + - name: set version + id: set-version + run: | + VERSION=${{ github.event.release.tag_name }} && VERSION=${VERSION/v/} + echo "version=$VERSION" >> $GITHUB_OUTPUT + - uses: mislav/bump-homebrew-formula-action@v2 + with: + formula-name: irissqlcli + formula-path: Formula/irissqlcli.rb + homebrew-tap: caretdev/homebrew-tap + base-branch: main + download-url: https://pypi.io/packages/source/i/irissqlcli/irissqlcli-${{ steps.set-version.outputs.version }}.tar.gz + commit-message: | + {{formulaName}} {{version}} + + Created by https://github.com/mislav/bump-homebrew-formula-action + env: + COMMITTER_TOKEN: ${{ secrets.TOKEN }} diff --git a/requirements-iris.txt b/requirements-iris.txt index 5b8fd66..872d8e7 100644 --- a/requirements-iris.txt +++ b/requirements-iris.txt @@ -1 +1 @@ -https://github.com/intersystems-community/intersystems-irispython/releases/download/3.4.1/intersystems_iris-3.4.1-py3-none-any.whl \ No newline at end of file +https://github.com/intersystems-community/intersystems-irispython/releases/download/3.4.2/intersystems_iris-3.4.2-py3-none-any.whl \ No newline at end of file