Skip to content

Commit c1f9d52

Browse files
authored
Merge pull request #56 from rmohr/rc-support
Support release candidate bulding properly
2 parents e5a37b0 + f139b50 commit c1f9d52

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ rpmtree(
7575
)
7676
```
7777

78-
### Running bazeldnf with bazel
78+
## Running bazeldnf with bazel
7979

8080
The bazeldnf repository needs to be added to your `WORKSPACE`:
8181

@@ -85,9 +85,9 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
8585

8686
http_archive(
8787
name = "bazeldnf",
88-
sha256 = "214289f6a7b79346f3fe714070661624143341066b7fc57169a9b89b412ead22",
88+
sha256 = "9dfd5ab882cae4ff9e2a7c1352c05949fa0c175af6b4103b19db48657e6da8b8",
8989
urls = [
90-
"https://github.com/rmohr/bazeldnf/releases/download/v0.5.7-rc0/bazeldnf-v0.5.7-rc0.tar.gz",
90+
"https://github.com/rmohr/bazeldnf/releases/download/v0.5.6/bazeldnf-v0.5.6.tar.gz",
9191
],
9292
)
9393

hack/prepare-release.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,13 @@ bazeldnf_dependencies()
106106
\`\`\`
107107
EOT
108108

109-
lead='^<!-- install_start -->$'
110-
tail='^<!-- install_end -->$'
111-
sed -i -e "/$lead/,/$tail/{ /$lead/{p; r dist/releasenote.txt
109+
# Only update the README if we don't build a release candidate
110+
if [[ "${VERSION}" != *"-rc"* ]]; then
111+
112+
lead='^<!-- install_start -->$'
113+
tail='^<!-- install_end -->$'
114+
sed -i -e "/$lead/,/$tail/{ /$lead/{p; r dist/releasenote.txt
112115
}; /$tail/p; d }" README.md
113116

114-
git commit -a -m "Bump install instructions for readme in ${VERSION}"
117+
git commit -a -m "Bump install instructions for readme in ${VERSION}"
118+
fi

0 commit comments

Comments
 (0)