Skip to content

Commit

Permalink
= Webhook changes
Browse files Browse the repository at this point in the history
  • Loading branch information
May2Beez committed Nov 26, 2023
1 parent 67400d6 commit d997d50
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,21 @@ jobs:
COMMIT_MESSAGE="${{ github.event.head_commit.message }}"
COMMIT_URL="${{ github.event.head_commit.url }}"
SHORT_COMMIT_SHA="${{ steps.short_sha.outputs.sha_short }}"
escaped_commit_message=$(echo "${COMMIT_MESSAGE}" | sed 's/\\n/\
/g')
escaped_commit_message=$(echo "${COMMIT_MESSAGE}" | sed -z 's/\n/\\n/g')
VERSION="${{ steps.get_version.outputs.VERSION }}"
if [[ $VERSION == *-pre ]]
then
TITLE="Pre-Release"
else
TITLE="Release"
fi
TITLE="${TITLE} ${VERSION}"
curl -X POST -H "Content-Type: application/json" \
-d "{
\"embeds\": [
{
\"title\": \"FarmHelper Update\",
\"title\": \"FarmHelper Update ${TITLE}\",
\"description\": \"FarmHelper has been updated with the following changes:\",
\"color\": 3447003,
\"thumbnail\": {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ baseGroup=com.jelly.farmhelperv2
mcVersion=1.8.9
modid=farmhelperv2
modName=FarmHelper
version=2.0.2-pre
version=2.0.3
shouldRelease=true

0 comments on commit d997d50

Please sign in to comment.