Skip to content

Commit 2d0222e

Browse files
fixed brew formula generation
1 parent 0d953a6 commit 2d0222e

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

.github/workflows/python.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,6 @@ jobs:
4444
id: get_version
4545
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
4646
- name: Publish Brew formula
47+
env:
48+
PUBLISHED_VERSION: ${{ steps.get_version.outputs.VERSION }}
4749
run: bash publish-brew-formula.sh # installs the latest published version and generates formula

CHANGELOG.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
SoCLI Changelog
22
================
33

4+
Release 6.5
5+
---------------------------
6+
* Fixing brew formula auto deploy
7+
48
Release 6.4
59
---------------------------
610
* Fixed tag name

publish-brew-formula.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
# Generate formula
22
set -e
33
pip install homebrew-pypi-poet==0.10.0 requests==2.24.0
4+
echo Doing pip install --upgrade --no-cache socli="${PUBLISHED_VERSION}"
45

56
# Code to wait till the latest package is available in pypi, if available do install
6-
until pip install --upgrade --no-cache socli=="${steps.get_version.outputs.VERSION}" && [[ "$(socli --version | awk '{print $2}')" == "${steps.get_version.outputs.VERSION}" ]] && true || false
7+
until pip install --upgrade --no-cache socli=="${PUBLISHED_VERSION}" && [[ "$(socli --version | awk '{print $2}')" == "${PUBLISHED_VERSION}" ]] && true || false
78
do
89
echo "Retrying again in 10 seconds..."
910
sleep 10
@@ -58,6 +59,6 @@ cp -fv socli.rb brewroot/Formula
5859
cd brewroot
5960
git add --all
6061
echo "Committing formula..."
61-
git commit -m "Published ${steps.get_version.outputs.VERSION}"
62+
git commit -m "Published ${PUBLISHED_VERSION}"
6263
echo "Pushing formula..."
63-
git push --quiet
64+
git push --quiet

socli/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
__version__ = '6.4'
1+
__version__ = '6.5'
22

0 commit comments

Comments
 (0)