diff --git a/.github/workflows/badgetizr.yml b/.github/workflows/badgetizr.yml
index b37a0ae..272508a 100644
--- a/.github/workflows/badgetizr.yml
+++ b/.github/workflows/badgetizr.yml
@@ -18,7 +18,7 @@ jobs:
uses: actions/checkout@v3
- name: Run Badgetizr
- uses: aiKrice/homebrew-badgetizr@fix/revamp_script_for_version
+ uses: aiKrice/homebrew-badgetizr@1.6.0
with:
pr_id: ${{ github.event.pull_request.number }}
configuration: .badgetizr.yml
diff --git a/utils.sh b/Formula/utils.sh
similarity index 97%
rename from utils.sh
rename to Formula/utils.sh
index db65bbd..e77dafd 100755
--- a/utils.sh
+++ b/Formula/utils.sh
@@ -27,4 +27,4 @@ Options :
EOF
}
-BADGETIZR_VERSION=1.4.0
\ No newline at end of file
+BADGETIZR_VERSION="1.5.0"
\ No newline at end of file
diff --git a/README.md b/README.md
index c69ba1a..afbde6a 100644
--- a/README.md
+++ b/README.md
@@ -2,8 +2,8 @@
Badgetizr
-![Static Badge](https://img.shields.io/badge/1.4.3-darkgreen?logo=homebrew&logoColor=white&label=Homebrew-tap)
-[![Static Badge](https://img.shields.io/badge/1.4.2-grey?logo=github&logoColor=white&label=Github-Action&labelColor=black)](https://github.com/marketplace/actions/badgetizr)
+![Static Badge](https://img.shields.io/${VERSION}-darkgreen?logo=homebrew&logoColor=white&label=Homebrew-tap)
+[![Static Badge](https://img.shields.io/${VERSION}-grey?logo=github&logoColor=white&label=Github-Action&labelColor=black)](https://github.com/marketplace/actions/badgetizr)
![Static Badge](https://img.shields.io/badge/passed-darkgreen?logo=github&logoColor=white&label=Github&labelColor=black)
![Static Badge](https://img.shields.io/badge/soon-pink?logo=gitlab&logoColor=orange&label=Gitlab&labelColor=white)
@@ -92,7 +92,7 @@ jobs:
uses: actions/checkout@v3
- name: Run Badgetizr
- uses: aiKrice/homebrew-badgetizr@1.4.1
+ uses: aiKrice/homebrew-badgetizr@1.6.0
with:
pr_id: ${{ github.event.pull_request.number }}
configuration: .badgetizr.yml
diff --git a/badgetizr b/badgetizr
index 9e1c42a..37c6ddd 100755
--- a/badgetizr
+++ b/badgetizr
@@ -4,7 +4,7 @@
if [ -f "$(dirname "$0")/../libexec/utils.sh" ]; then
UTILS_PATH="$(dirname "$0")/../libexec/utils.sh"
else
- UTILS_PATH="$(dirname "$0")/utils.sh"
+ UTILS_PATH="$(dirname "$0")/Formula/utils.sh"
fi
source "$UTILS_PATH"
diff --git a/publish.sh b/publish.sh
index ddd168e..035ba88 100755
--- a/publish.sh
+++ b/publish.sh
@@ -10,7 +10,7 @@
REPOSITORY="aiKrice/homebrew-badgetizr"
FORMULA_PATH="Formula/badgetizr.rb"
WORKFLOW_PATH=".github/workflows/badgetizr.yml"
-UTILS_PATH="utils.sh"
+UTILS_PATH="Formula/utils.sh"
README_PATH="README.md"
VERSION="$1"
@@ -48,6 +48,8 @@ sed -i '' -E "s/(badge\/)[0-9]+\.[0-9]+\.[0-9]+(-darkgreen\?logo=homebrew)/\${VE
sed -i '' -E "s/(badge\/)[0-9]+\.[0-9]+\.[0-9]+(-grey\?logo=github)/\${VERSION}\2/" "$README_PATH"
sed -i '' "s|uses: aiKrice/homebrew-badgetizr@.*|uses: aiKrice/homebrew-badgetizr@${VERSION}|" "$WORKFLOW_PATH" "$README_PATH"
+exit 0
+
git add "$UTILS_PATH" "$WORKFLOW_PATH" "$README_PATH"
git commit -m "Bump version to $VERSION for -v option"
git push