diff --git a/.github/workflows/cp_releases.yml b/.github/workflows/cp_releases.yml index 12d5a9b..3637acc 100644 --- a/.github/workflows/cp_releases.yml +++ b/.github/workflows/cp_releases.yml @@ -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 ' diff --git a/tools/commit.sh b/tools/commit.sh index f3f9068..22005fd 100755 --- a/tools/commit.sh +++ b/tools/commit.sh @@ -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}"