Commit e447cc4a authored by José Henrique's avatar José Henrique
Browse files

Fix url

parent 2e37c78c
...@@ -17,7 +17,7 @@ build: ...@@ -17,7 +17,7 @@ build:
git -C official_devices checkout FETCH_HEAD git -C official_devices checkout FETCH_HEAD
fi fi
docker build --no-cache -t official_devices_ci:latest ./ docker build --no-cache -t official_devices_ci:latest ./
docker run -e RUBYOPT='-W0' -e TELEGRAM_TOKEN=${TELEGRAM_TOKEN} -e GH_PERSONAL_TOKEN=${GH_PERSONAL_TOKEN} -e GIT_PR_NUMBER=${GIT_PR_NUMBER} official_devices_ci:latest docker run -e RUBYOPT='-W0' -e TELEGRAM_TOKEN=${TELEGRAM_TOKEN} -e GH_PERSONAL_TOKEN=${GH_PERSONAL_TOKEN} -e GIT_PR_NUMBER=${GIT_PR_NUMBER} -e BUILD_URL=${CI_JOB_URL} official_devices_ci:latest
only: only:
- triggers - triggers
- web - web
......
...@@ -5,12 +5,19 @@ ...@@ -5,12 +5,19 @@
# #
### Script to test and format our jsons ### Script to test and format our jsons
# Env vars
# TELEGRAM_TOKEN
# GH_PERSONAL_TOKEN
# GIT_PR_NUMBER
# BUILD_URL
ADMINS="@Hlcpereira @baalajimaestro @Shreejoy\_Dash @Rk585 @itsjoeoui @Hasaber8" ADMINS="@Hlcpereira @baalajimaestro @Shreejoy\_Dash @Rk585 @itsjoeoui @Hasaber8"
GIT_DIR="official_devices" GIT_DIR="official_devices"
GIT_CMD="git -C ${GIT_DIR}" GIT_CMD="git -C ${GIT_DIR}"
COMMIT_MESSAGE="$(${GIT_CMD} log -1 --pretty=%B)" COMMIT_MESSAGE="$(${GIT_CMD} log -1 --pretty=%B)"
COMMIT_SMALL_HASH="$(${GIT_CMD} rev-parse --short HEAD)" COMMIT_SMALL_HASH="$(${GIT_CMD} rev-parse --short HEAD)"
COMMIT_HASH="$(${GIT_CMD} rev-parse --verify HEAD)" COMMIT_HASH="$(${GIT_CMD} rev-parse --verify HEAD)"
COMMIT_URL="https://github.com/PixelExperience/official_devices/commit/$COMMIT_HASH"
function sendTG() { function sendTG() {
message="PixelExperience CI ([URL]($BUILD_URL)) ([$COMMIT_SMALL_HASH]($COMMIT_URL)): $1" message="PixelExperience CI ([URL]($BUILD_URL)) ([$COMMIT_SMALL_HASH]($COMMIT_URL)): $1"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment