@@ -102,43 +102,8 @@ jobs:
102102 VERSION="${{ github.event.inputs.version }}"
103103 git add src/AWS.Distro.OpenTelemetry.AutoInstrumentation/Version.cs
104104 git add build/Build.InstallationScripts.cs
105-
106- - name : Append latest release checksum to release-build-metadata.json
107- run : |
108- ARTIFACT_NAMES=(
109- "aws-distro-opentelemetry-dotnet-instrumentation-linux-glibc-arm64.zip"
110- "aws-distro-opentelemetry-dotnet-instrumentation-linux-glibc-x64.zip"
111- "aws-distro-opentelemetry-dotnet-instrumentation-linux-musl-arm64.zip"
112- "aws-distro-opentelemetry-dotnet-instrumentation-linux-musl-x64.zip"
113- "aws-distro-opentelemetry-dotnet-instrumentation-windows.zip"
114- "aws-otel-dotnet-install.sh"
115- "AWS.Otel.DotNet.Auto.psm1"
116- )
117-
118-
119- BASE_URL="https://github.com/aws-observability/aws-otel-dotnet-instrumentation/releases/download/v${{ github.event.inputs.version }}"
120- NEW_RELEASE=$(jq -n --arg version "${{ github.event.inputs.version }}" \
121- '{version: $version, checksum: []}')
122- for ARTIFACT_NAME in "${ARTIFACT_NAMES[@]}"; do
123- curl -L -o "$ARTIFACT_NAME" "${BASE_URL}/${ARTIFACT_NAME}"
124- CHECKSUM=$(shasum -a 256 $ARTIFACT_NAME | awk '{ print $1 }')
125-
126- NEW_RELEASE=$(echo "$NEW_RELEASE" | jq --arg name "$ARTIFACT_NAME" \
127- --arg checksum "$CHECKSUM" \
128- '.checksum += [{"name": $name, "checksum": $checksum}]')
129- done
130-
131- FILE="release-build-metadata.json"
132- UPDATED_JSON=$(jq --argjson new_release "$NEW_RELEASE" \
133- '.release += [$new_release]' "$FILE")
134- echo "$UPDATED_JSON" > "$FILE"
135-
136- git add release-build-metadata.json
137-
138- - name : Push changes to Github
139- run : |
140- git commit -m "Prepare main for next development cycle: Update version to ${{ github.event.inputs.version }}"
141- git push --set-upstream origin "prepare-main-for-next-dev-cycle-${{ github.event.inputs.version }}"
105+ git commit -m "Prepare main for next development cycle: Update version to $DEV_VERSION"
106+ git push --set-upstream origin "prepare-main-for-next-dev-cycle-${VERSION}"
142107
143108 - name : Create Pull Request to main
144109 env :
0 commit comments