Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix stale snapshot version in README and automate updates
Update the snapshot version in README.md from 0.2.1-java.0-SNAPSHOT to
0.2.3-java.1-SNAPSHOT to match the current pom.xml. Add a sed command
to the publish-maven workflow to update the snapshot version during
releases, preventing it from going stale again.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
  • Loading branch information
brunoborges and Copilot committed Apr 7, 2026
commit 89be8e74452f4ee6e7fcb66b96196c0efdcca54e
4 changes: 4 additions & 0 deletions .github/workflows/publish-maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@ jobs:
sed -i "s|<version>[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\(-java\.[0-9][0-9]*\)\{0,1\}</version>|<version>${VERSION}</version>|g" README.md
sed -i "s|copilot-sdk-java:[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\(-java\.[0-9][0-9]*\)\{0,1\}|copilot-sdk-java:${VERSION}|g" README.md

# Update snapshot version in README.md
DEV_VERSION="${{ steps.versions.outputs.dev_version }}"
sed -i "s|<version>[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\(-java\.[0-9][0-9]*\)\{0,1\}-SNAPSHOT</version>|<version>${DEV_VERSION}</version>|g" README.md

# Update version in jbang-example.java
sed -i "s|copilot-sdk-java:[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\(-java\.[0-9][0-9]*\)\{0,1\}|copilot-sdk-java:${VERSION}|g" jbang-example.java

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Snapshot builds of the next development version are published to Maven Central S
<dependency>
<groupId>com.github</groupId>
<artifactId>copilot-sdk-java</artifactId>
<version>0.2.1-java.0-SNAPSHOT</version>
<version>0.2.3-java.1-SNAPSHOT</version>
</dependency>
```

Expand Down
Loading