From 4e1895cef2d517dc1901c9cc681b1706f537f373 Mon Sep 17 00:00:00 2001 From: Dmytro Serdiuk Date: Thu, 25 Apr 2024 16:02:01 -0400 Subject: [PATCH] Add Brew installation In addition to the Brew installation notes, the `release-work-after` script will automate some release routines. --- .workflows/release-work-after | 22 ++++++++++++++++++++++ README.md | 2 ++ 2 files changed, 24 insertions(+) create mode 100755 .workflows/release-work-after diff --git a/.workflows/release-work-after b/.workflows/release-work-after new file mode 100755 index 0000000..468b343 --- /dev/null +++ b/.workflows/release-work-after @@ -0,0 +1,22 @@ +#!/usr/bin/env bash +# update Brew formulae +TAG=$(git describe) +COMMIT=$(git log --pretty=%H -1) + +if type brew >/dev/null 2>&1 ; then + info-text "Updating Homebrew formulae..." + brew bump-formula-pr --no-audit --tag=${TAG} --revision=${COMMIT} aws-creds +else + error-text "brew binary is not available." + error-text "Please make a manual formulae update." + cat <