Skip to content

Commit 52f471e

Browse files
committed
fix sed
1 parent 7393e26 commit 52f471e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/update-golangci-lint.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ jobs:
2424
run: |
2525
export LATEST_VERSION=$(curl -s https://api.github.com/repos/golangci/golangci-lint/releases/latest | jq -r .tag_name | sed 's/v//')
2626
echo "LATEST_VERSION=${LATEST_VERSION}" >> $GITHUB_ENV
27-
echo "latest_version=${LATEST_VERSION}" >> $GITHUB_OUTPUT
27+
echo "LATEST_VERSION=${LATEST_VERSION}" >> $GITHUB_OUTPUT
2828
- name: Check current version in Makefile
2929
id: check_version
3030
run: |
31-
export CURRENT_VERSION=$(grep 'GOLANGCI_LINT_VERSION' hack/tools/Makefile | cut -d '=' -f2 | tr -d ' ')
31+
export CURRENT_VERSION=$(grep 'GOLANGCI_LINT_VERSION ?=' hack/tools/Makefile | cut -d '=' -f2 | tr -d ' ')
3232
echo "CURRENT_VERSION=${CURRENT_VERSION}" >> $GITHUB_ENV
33-
echo "current_version=${CURRENT_VERSION}" >> $GITHUB_OUTPUT
33+
echo "CURRENT_VERSION=${CURRENT_VERSION}" >> $GITHUB_OUTPUT
3434
- name: Update Makefile if needed
3535
if: ${{ steps.check_version.outputs.current_version != steps.get_version.outputs.latest_version }}
3636
run: |

0 commit comments

Comments
 (0)