Skip to content

Commit 41a8289

Browse files
committed
ci: auto-refresh Go Report Card and warm proxy after release
1 parent ff25447 commit 41a8289

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,17 @@ jobs:
4444
env:
4545
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4646
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}
47+
48+
- name: Warm Go module proxy
49+
run: |
50+
TAG="${GITHUB_REF#refs/tags/}"
51+
echo "Warming proxy for $TAG..."
52+
curl -sf "https://proxy.golang.org/github.com/gitscrum-core/cli/@v/${TAG}.info" || true
53+
curl -sf "https://proxy.golang.org/github.com/gitscrum-core/cli/@v/${TAG}.mod" || true
54+
sleep 10
55+
56+
- name: Refresh Go Report Card
57+
run: |
58+
echo "Triggering Go Report Card refresh..."
59+
curl -sf -X POST -d "repo=github.com/gitscrum-core/cli" https://goreportcard.com/checks || true
60+
echo "Go Report Card refresh triggered"

0 commit comments

Comments
 (0)