Skip to content

Commit

Permalink
Set version in user-agent
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesJJ committed Apr 16, 2021
1 parent 6da26dc commit 3ca7294
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/go-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ jobs:

- name: Build
run: |
RELEASE_VERSION="$(printf "${GITHUB_REF}" | sed -E 's|^.+\/(v[0-9]+\.[0-9]+\.[0-9]+)$|\1|' | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+$')" && \
cd function && export GOOS=linux GOARCH=amd64 && \
sed -i "s|CloudWatchToGChat/v0.0.0|CloudWatchToGChat/${GITHUB_REF:-v0.0.0}|" main.go && \
sed -i "s|CloudWatchToGChat/v0.0.0|CloudWatchToGChat/${RELEASE_VERSION:-v0.0.0}|" main.go && \
grep "CloudWatchToGChat/" main.go && \
go build -o main && zip "main-$GOOS-$GOARCH.zip" main
- name: Release
Expand Down

0 comments on commit 3ca7294

Please sign in to comment.