We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81f9a9a commit 876c996Copy full SHA for 876c996
1 file changed
.github/workflows/update-go.yml
@@ -31,13 +31,14 @@ jobs:
31
if [ "$BEFORE_MINOR" != "$AFTER_MINOR" ]; then
32
LINT_VERSION=$(curl -fsSL \
33
-H "Accept: application/vnd.github+json" \
34
+ -H "Authorization: Bearer ${{ github.token }}" \
35
https://api.github.com/repos/golangci/golangci-lint/releases/latest \
36
| jq -r '.tag_name')
37
38
# Trim to vMAJOR.MINOR to match existing "version: v2.4" format
39
LINT_VERSION_SHORT=$(echo "$LINT_VERSION" | grep -oE '^v[0-9]+\.[0-9]+')
40
- sed -i "s|^\(\s*version:\s*\)v[0-9][0-9]*\.[0-9][0-9]*|\1${LINT_VERSION_SHORT}|" \
41
+ sed -i "s|^\([[:space:]]*version:[[:space:]]*\)v[0-9][0-9]*\.[0-9][0-9]*|\1${LINT_VERSION_SHORT}|" \
42
.github/workflows/golangci-lint.yml
43
44
{
0 commit comments