Skip to content

Commit

Permalink
chore: Fix conditional logic (#37)
Browse files Browse the repository at this point in the history
Co-authored-by: Raul Centeno <[email protected]>
  • Loading branch information
centenor and Raul Centeno authored Apr 14, 2023
1 parent eeb2ee9 commit 1412bcc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/secureli-deployment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ set -exo pipefail

pip install requests jinja2 poetry python-semantic-release # TODO: Look into Dockerizing these tools so we're not pulling them down each pipeile run
export secureliVersion=$(semantic-release print-version --current)
cd homebrew-secureli
if git rev-parse "v${secureliVersion}" >/dev/null 2>&1; then
echo "The tag v${secureliVersion} that would have been deployed already exists, ending pipeline execution..."
exit 1
Expand All @@ -13,8 +14,7 @@ else
export secureliSha256=$(sha256sum ./secureli-${secureliVersion}.tar.gz | awk '{print $1}')
git config --global user.email "[email protected]"
git config --global user.name "Secureli Automation"
python ./scripts/get-secureli-dependencies.py
cd homebrew-secureli
python ../scripts/get-secureli-dependencies.py
git checkout -b "secureli-${secureliVersion}-formula-generation"
git add ./Formula/secureli.rb
git commit -m "Creating pull request with latest Secureli formula for version ${secureliVersion}"
Expand Down

0 comments on commit 1412bcc

Please sign in to comment.