revert properly this time

This commit is contained in:
Bella 2020-03-12 11:44:24 -04:00
parent f69d3b952e
commit f288b08ccb
No known key found for this signature in database
GPG Key ID: 03B01AC937D1C89C
1 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ if [[ "$TRAVIS_PULL_REQUEST" == "true" ]]; then exit 0; else echo "">/dev/null;
COMMIT_TRIM="${TRAVIS_COMMIT::7}"
COMMIT_MSG="$TRAVIS_COMMIT_MESSAGE"
if [[ "$BRANCH" == "feature/master" ]] && [[ "$TRAVISBRANCH" == "1" ]]; then
if [[ "$BRANCH" == "feature/master" ]]; then
# Send message with branch name
curl -H "Content-Type: application/json" -X POST -d '{"embeds": [{"title": "","color": 10195199,"description": "**Changelog:** '"$COMMIT_MSG"'\nBranch: `'"$BRANCH"'`\nCommit: ['${COMMIT_TRIM}'](https://github.com/S-B99/kamiblue/commits/'${COMMIT_TRIM}') Full: ['${COMMIT_TRIM}'-](https://github.com/S-B99/kamiblue/commit/'${TRAVIS_COMMIT}') "}]}' "$WEBHOOK"
@ -13,7 +13,7 @@ if [[ "$BRANCH" == "feature/master" ]] && [[ "$TRAVISBRANCH" == "1" ]]; then
BUILD_DIR="$(readlink -f ./build/libs/)"
JAR_DIR="$(ls "$BUILD_DIR" | grep "release")"
curl -F content=@"$BUILD_DIR/$JAR_DIR" "$WEBHOOK"
elif [[ "$BRANCH" == "feature/safecrystal#480" ]] && [[ "$TRAVISBRANCH" == "2" ]]; then
elif [[ "$BRANCH" == "feature/safecrystal#480" ]]; then
# Send message with branch name
curl -H "Content-Type: application/json" -X POST -d '{"embeds": [{"title": "","color": 10195199,"description": "**Changelog:** '"$COMMIT_MSG"'\nBranch: `'"$BRANCH"'`\nCommit: ['${COMMIT_TRIM}'](https://github.com/S-B99/kamiblue/commits/'${COMMIT_TRIM}') Full: ['${COMMIT_TRIM}'-](https://github.com/S-B99/kamiblue/commit/'${TRAVIS_COMMIT}') "}]}' "$WEBHOOK"