Skip to content

Commit 92c3613

Browse files
authored
Add workflow to hydrate Go module proxy on push/tag (#2118)
1 parent 4b66155 commit 92c3613

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: hydrate-goproxy
2+
on:
3+
push:
4+
branches: [main]
5+
tags: ["*"]
6+
workflow_dispatch:
7+
permissions:
8+
contents: read
9+
jobs:
10+
hydrate:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: hydrate-goproxy
14+
run: |
15+
mkdir -p hydrate-goproxy
16+
cd hydrate-goproxy
17+
go mod init hydrate-goproxy
18+
if [[ "${GITHUB_REF}" == refs/tags/* ]]; then
19+
go get github.com/aws/amazon-cloudwatch-agent@${GITHUB_REF_NAME}
20+
else
21+
go get github.com/aws/amazon-cloudwatch-agent@${GITHUB_SHA}
22+
fi

0 commit comments

Comments
 (0)