Use latest download link on main branch
MODIFY
.github/workflows/prepare-release-branch.yml
.github/workflows/prepare-release-branch.yml
@@ -37,7 +37,7 @@ jobs:
- name: Bump download link version
run: |
new_version=$(grep -Eo "[0-9]+.[0-9]+.0" version.gradle.kts | head -1)
- sed -Ei "s,https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/download/v[0-9]+.[0-9]+.[0-9]+/,https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/download/v$new_version/," README.md
+ sed -Ei "s,https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/latest/download/,https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/download/v$new_version/," README.md
- name: Setup git name
run: |

MODIFY
README.md
README.md
@@ -59,7 +59,7 @@ if you are looking for documentation on using those.
## Getting Started
-Download the [latest version](https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/download/v1.11.1/opentelemetry-javaagent.jar).
+Download the [latest version](https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/latest/download/opentelemetry-javaagent.jar).
This package includes the instrumentation agent as well as
instrumentations for all supported libraries and all available data exporters.

Use latest download link on main branch (#5506)