Skip to content

Commit

Permalink
Add base64 encode of content
Browse files Browse the repository at this point in the history
  • Loading branch information
tammy-baylis-swi committed Jan 19, 2024
1 parent 932cb70 commit 0b62cb4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/scripts/release_pr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,14 @@ gh api -X POST /repos/solarwinds/apm-python/git/refs \
# Get SHA of current version.py at main
SHA=$(gh api /repos/solarwinds/apm-python/contents/solarwinds_apm/version.py?ref="main" --jq '.sha')

content=$(base64 <<< "__version__ ='$version_number'")

# Commit version.py with updated agent version
echo "Pushing new version.py to branch '$branch_name'"
gh api --method PUT /repos/solarwinds/apm-python/contents/solarwinds_apm/version.py \
--field message="Update agent version to $version_number" \
--field content="__version__%20=%20'$version_number'" \
--field content="$content" \
--field encoding="base64" \
--field branch="$branch_name" \
--field sha="$SHA"

Expand Down

0 comments on commit 0b62cb4

Please sign in to comment.