From b2b46027d430431bffb0229f7a511d44f5a01a46 Mon Sep 17 00:00:00 2001 From: Harry Date: Thu, 5 Dec 2024 10:43:04 -0800 Subject: [PATCH] Test --- .../workflows/post_release_version_bump.yml | 24 +++++++++++++++++++ .github/workflows/release_build.yml | 22 ----------------- checksum.txt | 0 release-build-metadata.json | 14 +++++++++++ version.txt | 0 5 files changed, 38 insertions(+), 22 deletions(-) delete mode 100644 checksum.txt create mode 100644 release-build-metadata.json delete mode 100644 version.txt diff --git a/.github/workflows/post_release_version_bump.yml b/.github/workflows/post_release_version_bump.yml index 6d53768c5..ac4b3eff0 100644 --- a/.github/workflows/post_release_version_bump.yml +++ b/.github/workflows/post_release_version_bump.yml @@ -118,3 +118,27 @@ jobs: By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice." \ --head prepare-main-for-next-dev-cycle-${VERSION} \ --base main + + https://github.com/aws-observability/aws-otel-java-instrumentation/releases/download/v1.32.5/aws-opentelemetry-agent.jar + + - name: Get SHA256 checksum of wheel file + id: get_sha256 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + checksum=$(shasum -a 256 dist/aws_opentelemetry_distro-${{ github.event.inputs.version }}-py3-none-any.whl | awk '{ print $1 }') + echo "CHECKSUM=$checksum" >> $GITHUB_OUTPUT + + - name: Append checksum and update version + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + echo "aws_opentelemetry_distro-${{ github.event.inputs.version }}-py3-none-any.whl ${{ steps.get_sha256.outputs.CHECKSUM }}" >> checksum.txt + echo "${{ github.event.inputs.version }}" > version.txt + + git config --local user.email "github-actions[bot]@users.noreply.github.com" + git config --local user.name "GitHub Action Release Workflow" + git add checksum.txt version.txt + git commit -m "Update latest version and append checksum" + git push + diff --git a/.github/workflows/release_build.yml b/.github/workflows/release_build.yml index de1c4593e..5ba34c581 100644 --- a/.github/workflows/release_build.yml +++ b/.github/workflows/release_build.yml @@ -131,28 +131,6 @@ jobs: --draft \ "v${{ github.event.inputs.version }}" \ dist/aws_opentelemetry_distro-${{ github.event.inputs.version }}-py3-none-any.whl - - - name: Get SHA256 checksum of wheel file - id: get_sha256 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - checksum=$(shasum -a 256 dist/aws_opentelemetry_distro-${{ github.event.inputs.version }}-py3-none-any.whl | awk '{ print $1 }') - echo "CHECKSUM=$checksum" >> $GITHUB_OUTPUT - - - name: Append checksum and update version - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - echo "aws_opentelemetry_distro-${{ github.event.inputs.version }}-py3-none-any.whl ${{ steps.get_sha256.outputs.CHECKSUM }}" >> checksum.txt - echo "${{ github.event.inputs.version }}" > version.txt - - git config --local user.email "github-actions[bot]@users.noreply.github.com" - git config --local user.name "GitHub Action Release Workflow" - git add checksum.txt version.txt - git commit -m "Update latest version and append checksum" - git push - diff --git a/checksum.txt b/checksum.txt deleted file mode 100644 index e69de29bb..000000000 diff --git a/release-build-metadata.json b/release-build-metadata.json new file mode 100644 index 000000000..946972617 --- /dev/null +++ b/release-build-metadata.json @@ -0,0 +1,14 @@ +{ + "release": [ + { + "version": "0.7.0", + "checksum": [ + { + "name": "aws_opentelemetry_distro-0.7.0-py3-none-any.whl", + "checksum": "8cf682fa56bc00326a741acf480024550017beda41acb1b51af9d3b5ef1a9470" + } + ] + } + ] +} + \ No newline at end of file diff --git a/version.txt b/version.txt deleted file mode 100644 index e69de29bb..000000000