Skip to content

Commit 4fbdc9b

Browse files
authored
Merge pull request #63 from github/fix/jbang-version-placeholder
Fix jbang-example.java to use actual version instead of Maven placeholder
2 parents a1c3bdd + 0d1b0dc commit 4fbdc9b

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)