Skip to content

Commit b4f94c1

Browse files
committed
set latest release
Signed-off-by: Gregor Zeitlinger <[email protected]>
1 parent 17e9e0b commit b4f94c1

File tree

3 files changed

+21
-10
lines changed

3 files changed

+21
-10
lines changed

.github/workflows/github-pages.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,16 @@ jobs:
3434
HUGO_VERSION: 0.115.4
3535
steps:
3636
- uses: actions/checkout@v4
37+
with:
38+
fetch-tags: 'true'
3739
- name: Set up JDK
3840
uses: actions/setup-java@v4
3941
with:
4042
java-version: 17
4143
distribution: temurin
4244
cache: 'maven'
45+
- name: Set release version
46+
run: ./scripts/set-release-version-github-pages.sh
4347
- name: Install Hugo CLI
4448
run: |
4549
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \

docs/content/getting-started/quickstart.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,27 +15,27 @@ We use the following dependencies:
1515
{{< tabs "uniqueid" >}}
1616
{{< tab "Gradle" >}}
1717
```
18-
implementation 'io.prometheus:prometheus-metrics-core:1.3.3'
19-
implementation 'io.prometheus:prometheus-metrics-instrumentation-jvm:1.3.3'
20-
implementation 'io.prometheus:prometheus-metrics-exporter-httpserver:1.3.3'
18+
implementation 'io.prometheus:prometheus-metrics-core:$version'
19+
implementation 'io.prometheus:prometheus-metrics-instrumentation-jvm:$version'
20+
implementation 'io.prometheus:prometheus-metrics-exporter-httpserver:$version'
2121
```
2222
{{< /tab >}}
2323
{{< tab "Maven" >}}
2424
```xml
2525
<dependency>
2626
<groupId>io.prometheus</groupId>
2727
<artifactId>prometheus-metrics-core</artifactId>
28-
<version>1.3.3</version>
28+
<version>$version</version>
2929
</dependency>
3030
<dependency>
3131
<groupId>io.prometheus</groupId>
3232
<artifactId>prometheus-metrics-instrumentation-jvm</artifactId>
33-
<version>1.3.3</version>
33+
<version>$version</version>
3434
</dependency>
3535
<dependency>
3636
<groupId>io.prometheus</groupId>
3737
<artifactId>prometheus-metrics-exporter-httpserver</artifactId>
38-
<version>1.3.3</version>
38+
<version>$version</version>
3939
</dependency>
4040
```
4141
{{< /tab >}}
@@ -69,7 +69,7 @@ plugins {
6969

7070
dependencies {
7171
implementation(platform(SpringBootPlugin.BOM_COORDINATES)) // if you are using Spring Boot
72-
implementation(platform("io.prometheus:prometheus-metrics-bom:1.3.3"))
72+
implementation(platform("io.prometheus:prometheus-metrics-bom:$version"))
7373
}
7474
```
7575

@@ -84,7 +84,7 @@ plugins {
8484

8585
dependencyManagement {
8686
imports {
87-
mavenBom("io.prometheus:prometheus-metrics-bom:1.3.3")
87+
mavenBom("io.prometheus:prometheus-metrics-bom:$version")
8888
}
8989
}
9090
```
@@ -93,7 +93,7 @@ dependencyManagement {
9393

9494
Be careful not to mix up the different ways of configuring things with Gradle.
9595
For example, don't use
96-
`implementation(platform("io.prometheus:prometheus-metrics-bom:1.3.3"))`
96+
`implementation(platform("io.prometheus:prometheus-metrics-bom:$version"))`
9797
with the `io.spring.dependency-management` plugin.
9898

9999
{{% /alert %}}
@@ -117,7 +117,7 @@ The following example shows how to import the Prometheus Java metrics BOMs using
117117
<dependency>
118118
<groupId>io.prometheus</groupId>
119119
<artifactId>prometheus-metrics-bom</artifactId>
120-
<version>1.3.3</version>
120+
<version>$version</version>
121121
<type>pom</type>
122122
<scope>import</scope>
123123
</dependency>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
3+
set -euo pipefail
4+
5+
version=$(git tag -l | grep 'v' | sort | tail -1)
6+
marker="\$version"
7+
sed -i "s/$marker/$version/g" docs/content/getting-started/quickstart.md

0 commit comments

Comments
 (0)