File tree Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change 5
5
set -euo pipefail
6
6
7
7
tag=" $1 "
8
- # The prefix is used to determine the directory structure of the archive. We strip the 'v'
9
- # prefix from the version number.
10
- directory=" jsinterop-annotations-${tag# v} "
11
- archive=" jsinterop-annotations-${tag} .tar.gz"
8
+ # GITHUB_REPOSITORY looks like user/repository_name, let strip the user part.
9
+ repository=${GITHUB_REPOSITORY#*/ }
10
+ # The prefix is used to determine the directory structure of the archive. We
11
+ # strip the 'v'prefix from the version number.
12
+ directory=" ${repository} -${tag# v} "
13
+ archive=" ${repository} -${tag} .tar.gz"
12
14
13
15
git archive --format=tar --prefix=${directory} / -o " ${archive} " ${tag}
14
16
15
- # The stdout of this program will be used as the top of the release notes for this release.
17
+ # Replace hyphens with underscores in the repository name to match our Bazel
18
+ # module naming conventions.
19
+ bazel_module_name=" ${repository// -/ _} "
20
+ # The stdout of this program will be used as the top of the release notes for
21
+ # this release.
16
22
cat << EOF
17
23
## Using Bazel 8 or later, add to your \` MODULE.bazel\` file:
18
24
19
25
\`\`\` starlark
20
- bazel_dep(name = "jsinterop_annotations ", version = "${tag} ")
26
+ bazel_dep(name = "${bazel_module_name} ", version = "${tag} ")
21
27
\`\`\`
22
- EOF
28
+ EOF
You can’t perform that action at this time.
0 commit comments