Skip to content

Commit 36d1c7f

Browse files
authored
Drone: Fix version in nightly build messages (joomla#44014)
1 parent 5d110b0 commit 36d1c7f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.drone.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -408,15 +408,16 @@ steps:
408408
- rclone delete nightly:/home/devj/public_html/nightlies/ --include "Joomla_$MINORVERSION.*"
409409
- rclone delete nightly:/home/devj/public_html/cache/com_content/
410410
- rclone copy ./transfer/ nightly:/home/devj/public_html/nightlies/
411-
- curl -i -X POST -H 'Content-Type:application/json' -d '{"text":"Nightly Build for [Joomla 5.2](https://developer.joomla.org/nightly-builds.html) successfully built."}' $MATTERMOST_NIGHTLY_HOOK
411+
- curl -i -X POST -H 'Content-Type:application/json' -d '{"text":"Nightly Build for [Joomla $MINORVERSION](https://developer.joomla.org/nightly-builds.html) successfully built."}' $MATTERMOST_NIGHTLY_HOOK
412412

413413
- name: buildfailure
414414
image: joomlaprojects/docker-images:packager
415415
environment:
416416
MATTERMOST_NIGHTLY_HOOK:
417417
from_secret: mattermost_nightly_hook
418418
commands:
419-
- curl -i -X POST -H 'Content-Type:application/json' -d '{"text":"Nightly Build for [Joomla 5.2](https://developer.joomla.org/nightly-builds.html) FAILED to built."}' $MATTERMOST_NIGHTLY_HOOK
419+
- export MINORVERSION=${DRONE_BRANCH%-*}
420+
- curl -i -X POST -H 'Content-Type:application/json' -d '{"text":"Nightly Build for [Joomla $MINORVERSION](https://developer.joomla.org/nightly-builds.html) FAILED to built."}' $MATTERMOST_NIGHTLY_HOOK
420421
when:
421422
status:
422423
- failure
@@ -430,6 +431,6 @@ trigger:
430431

431432
---
432433
kind: signature
433-
hmac: 903759c59028cc757ba3faef044e3b9122d00f99ea0367caadceb710cb88030f
434+
hmac: 4651bf03bdeacfec868856dca94418b8999543e6bc05c3797e927734c878ea89
434435

435436
...

0 commit comments

Comments
 (0)