matrix-alertmanager: fix and re-run update script
The update script wrote the updated dependency files to the wrong location.
This commit is contained in:
parent
784fae488c
commit
a7a662bf3d
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "matrix-alertmanager",
|
"name": "matrix-alertmanager",
|
||||||
"version": "0.4.0",
|
"version": "0.5.0",
|
||||||
"description": "Prometheus Alertmanager bot for Matrix",
|
"description": "Prometheus Alertmanager bot for Matrix",
|
||||||
"main": "src/app.js",
|
"main": "src/app.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -10,7 +10,7 @@
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.feneas.org/jaywink/matrix-alertmanager"
|
"url": "https://github.com/jaywink/matrix-alertmanager"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"matrix",
|
"matrix",
|
||||||
|
@ -24,17 +24,18 @@
|
||||||
"author": "Jason Robinson",
|
"author": "Jason Robinson",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"chai": "^4.2.0",
|
"chai": "^4.3.4",
|
||||||
"eslint": "^7.14.0",
|
"eslint": "^7.32.0",
|
||||||
"mocha": "^8.2.1",
|
"mocha": "^9.1.1",
|
||||||
"nodemon": "^2.0.6",
|
"nodemon": "^2.0.12",
|
||||||
"sinon": "^9.2.1"
|
"npm-check-updates": "^11.8.5",
|
||||||
|
"sinon": "^11.1.2"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"dotenv": "^8.2.0",
|
"dotenv": "^10.0.0",
|
||||||
"express": "^4.17.1",
|
"express": "^4.17.1",
|
||||||
"matrix-js-sdk": "^9.2.0",
|
"matrix-js-sdk": "^12.5.0",
|
||||||
"striptags": "^3.1.1"
|
"striptags": "^3.2.0"
|
||||||
},
|
},
|
||||||
"bin": "src/app.js"
|
"bin": "src/app.js"
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,12 +7,15 @@ writeShellScript "update-matrix-alertmanager" ''
|
||||||
set -xe
|
set -xe
|
||||||
export PATH="${lib.makeBinPath [ gnugrep coreutils curl wget jq common-updater-scripts yarn prefetch-yarn-deps ]}"
|
export PATH="${lib.makeBinPath [ gnugrep coreutils curl wget jq common-updater-scripts yarn prefetch-yarn-deps ]}"
|
||||||
|
|
||||||
|
cd pkgs/servers/monitoring/matrix-alertmanager/
|
||||||
|
|
||||||
owner="jaywink"
|
owner="jaywink"
|
||||||
repo="matrix-alertmanager"
|
repo="matrix-alertmanager"
|
||||||
version=`curl -s "https://api.github.com/repos/$owner/$repo/tags" | jq -r .[0].name | grep -oP "^v\K.*"`
|
version=`curl -s "https://api.github.com/repos/$owner/$repo/tags" | jq -r .[0].name | grep -oP "^v\K.*"`
|
||||||
url="https://raw.githubusercontent.com/$owner/$repo/v$version/"
|
url="https://raw.githubusercontent.com/$owner/$repo/v$version/"
|
||||||
|
|
||||||
(
|
(
|
||||||
|
cd ../../../..
|
||||||
update-source-version matrix-alertmanager "$version" --file=pkgs/servers/monitoring/matrix-alertmanager/default.nix
|
update-source-version matrix-alertmanager "$version" --file=pkgs/servers/monitoring/matrix-alertmanager/default.nix
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
1yvcm0prk8lxljlnww42pdgzdjdhljkih94hqb0x4cikd2cqgjmp
|
1vjg0rapdj88ygc00j60w4h5wkaf6jycmlx3fz13xar74ikwrifa
|
||||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue