Skip to content

Commit

Permalink
Add checksum for wheel artifact and also add version.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
harrryr committed Nov 1, 2024
1 parent 536c5e9 commit b9eefb8
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,24 @@ jobs:
--draft \
"v${{ github.event.inputs.version }}" \
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 aws-opentelemetry-agent.jar | awk '{ print $1 }')
echo "CHECKSUM=$checksum" >> $GITHUB_OUTPUT
- name: Append checksum and update version
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
echo "${{ github.event.inputs.version }} ${{ 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
Empty file added checksum.txt
Empty file.
Empty file added version.txt
Empty file.

0 comments on commit b9eefb8

Please sign in to comment.