From dba581f51b51da3f31d000eea9b7b78f252ffb9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Harrault?= <benoit@harrault.fr> Date: Thu, 1 Jul 2021 10:13:02 +0200 Subject: [PATCH] Add jabber notification on create tag --- .gitlab-ci.yml | 2 ++ android/gradle.properties | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b3d9a5d..9d0e11e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -96,6 +96,7 @@ application:release: dependencies: - android:build-release script: + - apk --no-cache add curl - git config user.email "${GITLAB_USER_EMAIL}" - git config user.name "${GITLAB_USER_NAME}" - git remote set-url origin https://oauth2:${GITLAB_ACCESS_TOKEN}@${CI_SERVER_HOST}/${CI_PROJECT_PATH} @@ -110,6 +111,7 @@ application:release: else git tag -a "${TAG_NAME}" -m "Release ${VERSION_NAME} (${VERSION_CODE})" git push origin "${TAG_NAME}" + curl --silent -d "{\"token\": \"${JABBER_NOTIFICATION_TOKEN}\", \"message\": \"New tag for ${CI_PROJECT_PATH}: ${TAG_NAME}\"}" -H "Content-Type: application/json" -X POST ${JABBER_NOTIFICATION_URL} fi android:deploy: diff --git a/android/gradle.properties b/android/gradle.properties index d965699..cc4e56e 100644 --- a/android/gradle.properties +++ b/android/gradle.properties @@ -1,5 +1,5 @@ org.gradle.jvmargs=-Xmx1536M android.useAndroidX=true android.enableJetifier=true -app.versionName=0.0.29 -app.versionCode=29 +app.versionName=0.0.30 +app.versionCode=30 -- GitLab