Compare commits

...

7 commits
v0.3.0 ... main

Author SHA1 Message Date
Bruno BELANYI 31b3b9fd24 flake: bump version to v0.4.0
All checks were successful
ci/woodpecker/push/check Pipeline was successful
2024-01-03 15:55:45 +00:00
Bruno BELANYI 37491e91e6 matrix-notifier: fix link to pipeline 2024-01-03 15:55:45 +00:00
Bruno BELANYI 48dad0c962 ci: use more explicit step name
All checks were successful
ci/woodpecker/push/check Pipeline was successful
2023-11-18 20:22:30 +00:00
Bruno BELANYI a57f1cfa71 ci: add package check 2023-11-18 20:22:30 +00:00
Bruno BELANYI d30a2d7366 ci: remove deprecated syntax 2023-11-18 20:22:30 +00:00
Bruno BELANYI 436483aac7 ci: remove Drone CI
All checks were successful
ci/woodpecker/push/check Pipeline was successful
ci/woodpecker/manual/check Pipeline was successful
2023-04-14 16:07:37 +00:00
Bruno BELANYI cb62f179a3 ci: add Woodpecker CI workflow 2023-04-14 16:07:37 +00:00
4 changed files with 33 additions and 29 deletions

View file

@ -1,27 +0,0 @@
---
kind: pipeline
type: exec
name: Matrix Notifier check
steps:
- name: Pre-commit checks
commands:
- nix flake check
- name: Notifiy
commands:
- nix run .
environment:
ADDRESS:
from_secret: matrix_homeserver
ROOM:
from_secret: matrix_roomid
USER:
from_secret: matrix_username
PASS:
from_secret: matrix_password
when:
status:
- failure
- success
...

31
.woodpecker/check.yml Normal file
View file

@ -0,0 +1,31 @@
labels:
type: exec
steps:
- name: flake check
image: bash
commands:
- nix flake check
- name: package check
image: bash
commands:
- nix build
- name: notifiy
image: bash
secrets:
- source: matrix_password
target: pass
- source: matrix_homeserver
target: address
- source: matrix_roomid
target: room
- source: matrix_username
target: user
commands:
- nix run .
when:
status:
- failure
- success

View file

@ -75,7 +75,7 @@
matrix-notifier = pkgs.stdenvNoCC.mkDerivation rec {
pname = "matrix-notifier";
version = "0.3.0";
version = "0.4.0";
src = ./matrix-notifier;

View file

@ -40,7 +40,7 @@ rawurlencode() {
default_woodpecker_message() {
local msg="Build ${CI_PIPELINE_STATUS}"
local woodpecker_url="${CI_SYSTEM_LINK}/${CI_REPO}/${CI_PIPELINE_NUMBER}"
local woodpecker_url="${CI_PIPELINE_URL}"
if [ "$FORMAT" == "true" ]; then
msg="$msg [${CI_REPO}#${CI_COMMIT_SHA:0:8}]($woodpecker_url)"
else