From a3aa3ace1c8801e05d050c8eb95c1218a6c3096b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Tj=C3=A4der?= Date: Thu, 10 Feb 2022 10:40:49 +0100 Subject: [PATCH 1/2] GHA: Print current crate version too --- .github/workflows/build.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 923c30f15a..2e93a79fba 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -463,8 +463,10 @@ jobs: # followed by MAJOR.MINOR.PATCH, see semver.org # Store first in array as stable stable=${vers} + crateversion={{ env.versionmajor }} - echo "Stable version: $stable" + echo "Latest stable version: $stable" + echo "Current crate version: $crateversion" # Create directories td=$(mktemp -d) @@ -481,7 +483,7 @@ jobs: # Create the redirects for dev-version # If the current stable and the version being built differ, # then there is a dev-version and the links should point to it. - if [[ "$stable" != "{{ env.versionmajor }}" ]]; + if [[ "$stable" != "$crateversion" ]]; then sed 's|URL|rtic/index.html|g' redirect.html > $td/$devver/api/index.html sed 's|URL|book/en|g' redirect.html > $td/$devver/index.html From 48d100bd1d9bf1af64ff3284ac1ef8e7449b98ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Tj=C3=A4der?= Date: Tue, 15 Feb 2022 18:30:54 +0100 Subject: [PATCH 2/2] Docs: fix link --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index daaba78a0f..9c6a861e94 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -4,7 +4,7 @@ New features should go through the [RFC process][rfcs] before creating a Pull Request to this repository. -[rfcs](https://github.com/rtic-rs/rfcs) +[rfcs]: https://github.com/rtic-rs/rfcs ## Bugs