Compare commits
8 commits
2e98292b98
...
0583ed2310
Author | SHA1 | Date | |
---|---|---|---|
Bruno BELANYI | 0583ed2310 | ||
Bruno BELANYI | c91766f15e | ||
Bruno BELANYI | 002f514dd5 | ||
Bruno BELANYI | b287605b90 | ||
Bruno BELANYI | 0694dcb7b7 | ||
Bruno BELANYI | 23cda88f49 | ||
Bruno BELANYI | fa23e48ad5 | ||
Bruno BELANYI | 10e0623e17 |
|
@ -6,7 +6,7 @@ name: Matrix Notifier check
|
||||||
steps:
|
steps:
|
||||||
- name: Pre-commit checks
|
- name: Pre-commit checks
|
||||||
commands:
|
commands:
|
||||||
- nix flake check
|
- nix flake check -vvv
|
||||||
|
|
||||||
- name: Notifiy
|
- name: Notifiy
|
||||||
commands:
|
commands:
|
||||||
|
@ -20,6 +20,9 @@ steps:
|
||||||
from_secret: matrix_username
|
from_secret: matrix_username
|
||||||
PASS:
|
PASS:
|
||||||
from_secret: matrix_password
|
from_secret: matrix_password
|
||||||
|
MESSAGE:
|
||||||
|
# FIXME: need to find a way to link
|
||||||
|
"Build ${DRONE_BUILD_STATUS} [${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}](${dummy_link}) (${DRONE_BRANCH}) by ${DRONE_COMMIT_AUTHOR}"
|
||||||
settings:
|
settings:
|
||||||
trigger:
|
trigger:
|
||||||
status:
|
status:
|
||||||
|
|
|
@ -23,17 +23,6 @@ rawurlencode() {
|
||||||
echo "$encoded")
|
echo "$encoded")
|
||||||
}
|
}
|
||||||
|
|
||||||
default_drone_message() {
|
|
||||||
local msg="Build ${DRONE_BUILD_STATUS}"
|
|
||||||
msg="$msg ${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}/${DRONE_BUILD_NUMBER}"
|
|
||||||
msg="$msg (${DRONE_BRANCH})"
|
|
||||||
printf '%s' "$msg"
|
|
||||||
}
|
|
||||||
|
|
||||||
if [ "$DRONE" == "true" ] && [ -z "$MESSAGE" ]; then
|
|
||||||
MESSAGE="$(default_drone_message)"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "$USER" ] || [ -z "$PASS" ]; then
|
if [ -z "$USER" ] || [ -z "$PASS" ]; then
|
||||||
print_err "You must provide USER and PASS"
|
print_err "You must provide USER and PASS"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Reference in a new issue