Skip to content

Commit 520e730

Browse files
committed
fix(ci): correct the Latest-version sed pattern in two release workflows
api-detector-core-release.yml and sedr-library-release.yml's Update-README step used a pattern requiring one arbitrary character between the table's opening pipe and the version's backtick (|Latest version |.`...`), but the actual README markup has no character there - the substitution silently matched nothing on every release. api-detector-core's table has been stuck at 0.0.1 since its first release; sedr-library's at 0.4.6. Replaces both with the same line-match pattern geo-tracker-lens-pack-release.yml and spring-rules-release.yml already use successfully, and corrects both tables' current values to match their actual latest published release (1.4.0 and 1.0.0) so the fix is visible immediately rather than waiting for the next release to trigger it.
1 parent 4491ed5 commit 520e730

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/api-detector-core-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ jobs:
182182

183183
- name: Update version in api-detector-core README
184184
run: |
185-
sed -i "s/|Latest version |.\`[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*[a-zA-Z0-9.-]*\`/|Latest version |\`${{ env.VERSION }}\`/" api-detector-core/README.adoc
185+
sed -i -E "s#^\|Latest version \|.*#|Latest version |\`${{ env.VERSION }}\`#" api-detector-core/README.adoc
186186
sed -i "s/api-detector-core:[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*[a-zA-Z0-9.-]*/api-detector-core:${{ env.VERSION }}/g" api-detector-core/README.adoc
187187
sed -i "s|<version>[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*[a-zA-Z0-9.-]*</version>|<version>${{ env.VERSION }}</version>|" api-detector-core/README.adoc
188188

.github/workflows/sedr-library-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ jobs:
183183

184184
- name: Update version in sedr-library README
185185
run: |
186-
sed -i "s/|Latest version |.\`[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*[a-zA-Z0-9.-]*\`/|Latest version |\`${{ env.VERSION }}\`/" sedr-library/README.adoc
186+
sed -i -E "s#^\|Latest version \|.*#|Latest version |\`${{ env.VERSION }}\`#" sedr-library/README.adoc
187187
sed -i "s/sedr-library:[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*[a-zA-Z0-9.-]*/sedr-library:${{ env.VERSION }}/g" sedr-library/README.adoc
188188
sed -i "s|<version>[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*[a-zA-Z0-9.-]*</version>|<version>${{ env.VERSION }}</version>|" sedr-library/README.adoc
189189

api-detector-core/README.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Detector, Mirage API Detector, and Doppelganger API Detector.
1212

1313
[cols="1,1"]
1414
|===
15-
|Latest version |`0.0.1`
15+
|Latest version |`1.4.0`
1616
|Group ID |`com.arc-e-tect`
1717
|Artifact ID |`api-detector-core`
1818
|===

sedr-library/README.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Shared Java annotations and utilities for _Software Engineering Done Right_ proj
1111

1212
[cols="1,1"]
1313
|===
14-
|Latest version |`0.4.6`
14+
|Latest version |`1.0.0`
1515
|Group ID |`com.arc-e-tect.sedr.utils`
1616
|Artifact ID |`sedr-library`
1717
|===

0 commit comments

Comments
 (0)