File tree 4 files changed +13
-4
lines changed
4 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 6
6
7
7
set -euo pipefail
8
8
9
+ # Avoid sourcing this script multiple times to guard against when lib.sh
10
+ # is used by another sourced script, it can lead to confusing results.
11
+ if [[ ${SCRIPTS_LIB_IS_SOURCED:- 0} == 1 ]]; then
12
+ return
13
+ fi
14
+ # Do not export to avoid this value being inherited by non-sourced
15
+ # scripts.
16
+ SCRIPTS_LIB_IS_SOURCED=1
17
+
9
18
# realpath returns an absolute path to the given relative path. It will fail if
10
19
# the parent directory of the path does not exist. Make sure you are in the
11
20
# expected directory before running this to avoid errors.
Original file line number Diff line number Diff line change 14
14
15
15
set -euo pipefail
16
16
# shellcheck source=scripts/lib.sh
17
- source " $( dirname " ${BASH_SOURCE[0]} " ) /.. /lib.sh"
17
+ source " $( dirname " $( dirname " $ {BASH_SOURCE[0]}" ) " ) /lib.sh"
18
18
19
19
from_ref=${1:- }
20
20
to_ref=${2:- }
Original file line number Diff line number Diff line change 13
13
14
14
set -euo pipefail
15
15
# shellcheck source=scripts/lib.sh
16
- source " $( dirname " ${BASH_SOURCE[0]} " ) /.. /lib.sh"
16
+ source " $( dirname " $( dirname " $ {BASH_SOURCE[0]}" ) " ) /lib.sh"
17
17
18
18
old_version=
19
19
new_version=
Original file line number Diff line number Diff line change 27
27
28
28
set -euo pipefail
29
29
# shellcheck source=scripts/lib.sh
30
- source " $( dirname " ${BASH_SOURCE[0]} " ) /.. /lib.sh"
30
+ source " $( dirname " $( dirname " $ {BASH_SOURCE[0]}" ) " ) /lib.sh"
31
31
32
32
if [[ " ${CI:- } " == " " ]]; then
33
33
error " This script must be run in CI"
110
110
source " $SCRIPT_DIR /release/check_commit_metadata.sh" " $old_tag " " $new_ref "
111
111
112
112
# Craft the release notes.
113
- release_notes=" $( execrelative ./generate_release_notes.sh --old-version " $old_tag " --new-version " $new_tag " --ref " $new_ref " ) "
113
+ release_notes=" $( execrelative ./release/ generate_release_notes.sh --old-version " $old_tag " --new-version " $new_tag " --ref " $new_ref " ) "
114
114
115
115
release_notes_file=" $( mktemp) "
116
116
echo " $release_notes " > " $release_notes_file "
You can’t perform that action at this time.
0 commit comments