Skip to content

Commit

Permalink
chore: Make version updates less fiddly (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
unfunco committed May 9, 2024
1 parent 90623c7 commit d7b24a9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,13 @@ jobs:
git pull origin ${{ fromJSON(steps.release.outputs.pr).headBranchName }}
version=$(jq -r '."."' .github/release-manifest.json)
version=${version#v}
sed -i '/const semanticVersion = \"[0-9]*\.[0-9]*\.[0-9]*\"/cconst semanticVersion = \"$version\"' version.go
cat << EOF > version.go
package anthropic
// semanticVersion does not need to be updated manually.
// It is automatically updated by the release process.
const semanticVersion = "$version"
EOF
git config --local user.name "David Letterman"
git config --local user.email "[email protected]"
git add version.go
Expand Down

0 comments on commit d7b24a9

Please sign in to comment.