Update the version of prettier being used
[releng/global-jjb.git] / shell / release-announce.sh
1 #!/bin/bash
2 # SPDX-License-Identifier: EPL-1.0
3 ##############################################################################
4 # Copyright (c) 2018 The Linux Foundation and others.
5 #
6 # All rights reserved. This program and the accompanying materials
7 # are made available under the terms of the Eclipse Public License v1.0
8 # which accompanies this distribution, and is available at
9 # http://www.eclipse.org/legal/epl-v10.html
10 ##############################################################################
11 echo "---> release-announce.sh"
12
13 if [[ $PROJECT_SLUG != "" ]]; then
14     PROJECT="$PROJECT_SLUG"
15 else
16     PROJECT="${GERRIT_PROJECT#releng/}"  # For releng projects strip the prefix
17 fi
18
19 TAG_NAME="${GERRIT_REFNAME#refs/tags/}"
20
21 set -eux -o pipefail
22
23 mail_opts=()
24 mail_opts+=("-r" "LF Releng <lf-releng@lists.linuxfoundation.org>")
25 mail_opts+=("-s" "$PROJECT $TAG_NAME released")
26 mail_opts+=("lf-releng@lists.linuxfoundation.org")
27
28 mail "${mail_opts[@]}" << EOF
29 Hi Everyone,
30
31 $PROJECT $TAG_NAME is released. Thanks to everyone who contributed
32 to this release. Release notes are available online at:
33
34 https://docs.releng.linuxfoundation.org/projects/$PROJECT/en/latest/release-notes.html#${TAG_NAME}
35
36 Cheers,
37 LF Releng
38 EOF