Skip to content

Commit 86593d0

Browse files
brunoborgesCopilot
andcommitted
Fix jbang-example.java to use actual version instead of Maven placeholder
Replace ${project.version} with a real version number (0.2.2-java.1) in jbang-example.java since this file is not Maven-filtered. Also add a fallback sed pattern in the release workflow to handle the placeholder during the transition. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent a1c3bdd commit 86593d0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/publish-maven.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ jobs:
123123
124124
# Update version in jbang-example.java
125125
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
126+
sed -i "s|copilot-sdk-java:\${project\.version}|copilot-sdk-java:${VERSION}|g" jbang-example.java
126127
127128
# Update version in cookbook files (hardcoded for direct GitHub browsing and JBang usage)
128129
find src/site/markdown/cookbook -name "*.md" -type f -exec \

jbang-example.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
!
2-
//DEPS com.github:copilot-sdk-java:${project.version}
2+
//DEPS com.github:copilot-sdk-java:0.2.2-java.1
33
import com.github.copilot.sdk.CopilotClient;
44
import com.github.copilot.sdk.events.AssistantMessageEvent;
55
import com.github.copilot.sdk.events.SessionUsageInfoEvent;

0 commit comments

Comments
 (0)