Skip to content

Commit 876c996

Browse files
committed
Fix PR comments
Signed-off-by: Joao Pereira <joaopapereira@gmail.com>
1 parent 81f9a9a commit 876c996

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/update-go.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,14 @@ jobs:
3131
if [ "$BEFORE_MINOR" != "$AFTER_MINOR" ]; then
3232
LINT_VERSION=$(curl -fsSL \
3333
-H "Accept: application/vnd.github+json" \
34+
-H "Authorization: Bearer ${{ github.token }}" \
3435
https://api.github.com/repos/golangci/golangci-lint/releases/latest \
3536
| jq -r '.tag_name')
3637
3738
# Trim to vMAJOR.MINOR to match existing "version: v2.4" format
3839
LINT_VERSION_SHORT=$(echo "$LINT_VERSION" | grep -oE '^v[0-9]+\.[0-9]+')
3940
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}|" \
4142
.github/workflows/golangci-lint.yml
4243
4344
{

0 commit comments

Comments
 (0)