Merge pull request #145796 from piegamesde/update-appservice-irc

This commit is contained in:
Martin Weinelt 2021-11-25 11:08:01 +01:00 committed by GitHub
commit ee31eb664c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 5 deletions

View file

@ -5,7 +5,7 @@ let
inherit pkgs nodejs;
inherit (stdenv.hostPlatform) system;
};
version = builtins.replaceStrings [ "\n" ] [ "" ] (builtins.readFile ./REVISION);
version = (lib.importJSON ./package.json).version;
in
ourNodePackages.package.override {
pname = "matrix-appservice-irc";
@ -30,7 +30,7 @@ ourNodePackages.package.override {
meta = with lib; {
description = "Node.js IRC bridge for Matrix";
maintainers = with maintainers; [ piegames ];
maintainers = with maintainers; [ ];
homepage = "https://github.com/matrix-org/matrix-appservice-irc";
license = licenses.asl20;
};

View file

@ -6,7 +6,7 @@ set -euo pipefail
cd "$(dirname "$0")"
CURRENT_VERSION=$(nix eval --raw '(with import ../../../../. {}; matrix-appservice-irc.version)')
TARGET_VERSION="$(curl https://api.github.com/repos/matrix-org/matrix-appservice-irc/releases/latest | jq -r ".tag_name")"
TARGET_VERSION="$(curl https://api.github.com/repos/matrix-org/matrix-appservice-irc/releases/latest | jq --exit-status -r ".tag_name")"
if [[ "$CURRENT_VERSION" == "$TARGET_VERSION" ]]; then
echo "matrix-appservice-irc is up-to-date: ${CURRENT_VERSION}"
@ -18,7 +18,6 @@ echo "matrix-appservice-irc: $CURRENT_VERSION -> $TARGET_VERSION"
rm -f package.json package-lock.json
wget https://github.com/matrix-org/matrix-appservice-irc/raw/$TARGET_VERSION/package.json
wget -O package-lock-temp.json https://github.com/matrix-org/matrix-appservice-irc/raw/$TARGET_VERSION/package-lock.json
echo "$TARGET_VERSION" > ./REVISION
./generate-dependencies.sh