Skip to content

Commit

Permalink
Rework special characters escape correctly for Telegram; Fix repo URL…
Browse files Browse the repository at this point in the history
… in manifest.json; Remove version name from manual commit
  • Loading branch information
xyzroe committed May 8, 2024
1 parent a1f6505 commit a2bed95
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/cp_releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
ref: releases

- name: Download release assets and create manifest.json
env:
GITHUB_REPO: ${{ github.repository }}
run: |
base_url="https://raw.githubusercontent.com/${GITHUB_REPO}/releases"
curl -s https://api.github.com/repos/xyzroe/XZG/releases | jq -r '
Expand Down
9 changes: 5 additions & 4 deletions tools/commit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,20 @@ if [ -f "$COMMIT_MESSAGE_FILE" ]; then
useExistingMessage=${useExistingMessage:-y} # default 'yes' if empty
if [[ "$useExistingMessage" =~ ^[Yy]$ ]]; then
commitMessage=$(cat "$COMMIT_MESSAGE_FILE")
# Prepend version to the commit message with a newline for separation
formattedCommitMessage="${version}
${commitMessage}"
else
echo -e "${YELLOW}Please enter your commit message: 📝${NC}"
read -r commitMessage
formattedCommitMessage="${commitMessage}"
fi
else
echo -e "${YELLOW}Commit message file not found. Please enter your commit message: 📝${NC}"
read -r commitMessage
formattedCommitMessage="${commitMessage}"
fi

# Prepend version to the commit message with a newline for separation
formattedCommitMessage="${version}
${commitMessage}"

# Committing changes
git commit -m "$formattedCommitMessage"
echo -e "${GREEN}Changes committed with version prepended to message: ✔️${NC}"
Expand Down

0 comments on commit a2bed95

Please sign in to comment.