Skip to content

Commit

Permalink
Update metadata.json file name
Browse files Browse the repository at this point in the history
  • Loading branch information
harrryr committed Dec 16, 2024
1 parent 9baeb94 commit 9cb54a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/post_release_version_bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,21 +100,21 @@ jobs:
VERSION="${{ github.event.inputs.version }}"
git add awsagentprovider/src/main/java/software/amazon/opentelemetry/javaagent/providers/ArtifactVersion.java
- name: Append latest release checksum to release-build-metadata.json
- name: Append latest release checksum to release-artifacts-metadata.json
run: |
ARTIFACT_NAME="aws-opentelemetry-agent.jar"
curl -L -o $ARTIFACT_NAME https://github.com/aws-observability/aws-otel-java-instrumentation/releases/download/v${{ github.event.inputs.version }}/$ARTIFACT_NAME
CHECKSUM=$(shasum -a 256 $ARTIFACT_NAME | awk '{ print $1 }')
FILE="release-build-metadata.json"
FILE="release-artifacts-metadata.json"
UPDATED_JSON=$(jq --arg version "${{ env.VERSION }}" \
--arg name "$ARTIFACT_NAME" \
--arg checksum "$CHECKSUM" \
'.release += [{"version": $version, "checksum": [{"name": $name, "checksum": $checksum}]}]' "$FILE")
echo "$UPDATED_JSON" > "$FILE"
git add release-build-metadata.json
git add release-artifacts-metadata.json
- name: Push changes to Github
run: |
Expand Down
File renamed without changes.

0 comments on commit 9cb54a0

Please sign in to comment.