Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
harrryr committed Dec 9, 2024
1 parent e5986b3 commit bfe53c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/post_release_version_bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: Get current major.minor version from main branch
id: get_version
run: |
CURRENT_VERSION=$(grep 'public static String VERSION' awsagentprovider/src/main/java/software/amazon/opentelemetry/javaagent/providers/Version.java | sed -E 's/ public static String VERSION = "([0-9]+\.[0-9]+)\.[0-9]+.*";/\1/')
CURRENT_VERSION=$(grep 'public final String VERSION' awsagentprovider/src/main/java/software/amazon/opentelemetry/javaagent/providers/ArtifactVersion.java | sed -E 's/ public final String VERSION = "([0-9]+\.[0-9]+)\.[0-9]+.*";/\1/')
echo "CURRENT_MAJOR_MINOR_VERSION=$CURRENT_VERSION" >> $GITHUB_ENV
- name: Set major and minor for current version
Expand Down Expand Up @@ -98,7 +98,7 @@ jobs:
- name: Update version to next development version in main
run: |
DEV_VERSION="1.32.7.dev0"
sed -i "s/public static String VERSION = \".*\";/public static String VERSION = \"${DEV_VERSION}\";/" awsagentprovider/src/main/java/software/amazon/opentelemetry/javaagent/providers/Version.java
sed -i "s/public final String VERSION = \".*\";/public final String VERSION = \"${DEV_VERSION}\";/" awsagentprovider/src/main/java/software/amazon/opentelemetry/javaagent/providers/ArtifactVersion.java
VERSION="1.32.7"
git add awsagentprovider/src/main/java/software/amazon/opentelemetry/javaagent/providers/Version.java
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@

package software.amazon.opentelemetry.javaagent.providers;

import io.opentelemetry.api.common.AttributeKey;

/** Utility class holding attribute keys with special meaning to AWS components */
final class AwsAttributeKeys {

private AwsAttributeKeys() {}

public static VERSION = "1.32.5.dev0";
}
public final class ArtifactVersion {
public final String VERSION = "1.32.5.dev0";
}

0 comments on commit bfe53c6

Please sign in to comment.