Skip to content

Commit

Permalink
Merge branch 'master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
aiKrice committed Dec 6, 2024
2 parents 852c0ef + 21cd617 commit a90ea11
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 13 deletions.
4 changes: 2 additions & 2 deletions Formula/badgetizr.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
class Badgetizr < Formula
desc "Badgetizr is a tool to allow custom badges automatically added and updated according the content of your pull request."
homepage "https://github.com/aiKrice/homebrew-badgetizr"
url "https://github.com/aiKrice/homebrew-badgetizr/archive/refs/tags/1.5.2.tar.gz"
url "https://github.com/aiKrice/homebrew-badgetizr/archive/refs/tags/1.5.3.tar.gz"
head "https://github.com/aiKrice/homebrew-badgetizr.git", branch: "master"
sha256 "a932f3a762628b50f5883d617b800a47dca90b1f899b9e0f873d5d9f4412c584"
sha256 "dfb861408f36540f35c6b9f190cf96745eae577880b6e2c1a15b7212431c9fe8"
license "MIT"

depends_on "yq"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<h1 align="center">
Badgetizr

![Static Badge](https://img.shields.io/1.5.2-darkgreen?logo=homebrew&logoColor=white&label=Homebrew-tap)
[![Static Badge](https://img.shields.io/1.5.2-grey?logo=github&logoColor=white&label=Github-Action&labelColor=black)](https://github.com/marketplace/actions/badgetizr)
![Static Badge](https://img.shields.io/badge/1.5.2-darkgreen?logo=homebrew&logoColor=white&label=Homebrew-tap)
[![Static Badge](https://img.shields.io/badge/1.5.2-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)

Expand Down
8 changes: 1 addition & 7 deletions badgetizr
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
#!/bin/bash

# Use local utils.sh during development
if [ -f "$(dirname "$0")/../libexec/utils.sh" ]; then
UTILS_PATH="$(dirname "$0")/../libexec/utils.sh"
else
UTILS_PATH="$(dirname "$0")/utils.sh"
fi
source "$UTILS_PATH"
source $UTILS_PATH

config_file=".badgetizr.yml"

Expand Down
6 changes: 4 additions & 2 deletions publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@ fail_if_error "Failed to pull develop. Please stash changes."

# Changing the version for -v option
sed -i '' "s|^BADGETIZR_VERSION=.*|BADGETIZR_VERSION=\"$VERSION\"|" "$UTILS_PATH"
sed -i '' -E "s/(badge\/)[0-9]+\.[0-9]+\.[0-9]+(-darkgreen\?logo=homebrew)/${VERSION}\2/" "$README_PATH"
sed -i '' -E "s/(badge\/)[0-9]+\.[0-9]+\.[0-9]+(-grey\?logo=github)/${VERSION}\2/" "$README_PATH"
sed -i '' -E \
-e "s@(https://img\.shields\.io/badge/)[0-9]+\.[0-9]+\.[0-9]+(-darkgreen\\?logo=homebrew.*)@\1${VERSION}\2@" \
-e "s@(https://img\.shields\.io/badge/)[0-9]+\.[0-9]+\.[0-9]+(-grey\\?logo=github.*)@\1${VERSION}\2@" \
"$README_PATH"
sed -i '' "s|uses: aiKrice/homebrew-badgetizr@.*|uses: aiKrice/homebrew-badgetizr@${VERSION}|" "$WORKFLOW_PATH" "$README_PATH"

git add "$UTILS_PATH" "$WORKFLOW_PATH" "$README_PATH"
Expand Down

0 comments on commit a90ea11

Please sign in to comment.