forked from bazelbuild/rules_swift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgenerate-notes.sh
executable file
·48 lines (33 loc) · 950 Bytes
/
generate-notes.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/bash
set -euo pipefail
readonly new_version=$1
readonly release_archive="rules_swift.$new_version.tar.gz"
sha=$(shasum -a 256 "$release_archive" | cut -d " " -f1)
cat <<EOF
## What's Changed
TODO
This release is compatible with: TODO
## MODULE.bazel Snippet
\`\`\`bzl
bazel_dep(name = "rules_swift", version = "$new_version", repo_name = "build_bazel_rules_swift")
\`\`\`
## Workspace Snippet
\`\`\`bzl
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "build_bazel_rules_swift",
sha256 = "$sha",
url = "https://github.com/bazelbuild/rules_swift/releases/download/$new_version/rules_swift.$new_version.tar.gz",
)
load(
"@build_bazel_rules_swift//swift:repositories.bzl",
"swift_rules_dependencies",
)
swift_rules_dependencies()
load(
"@build_bazel_rules_swift//swift:extras.bzl",
"swift_rules_extra_dependencies",
)
swift_rules_extra_dependencies()
\`\`\`
EOF