Skip to content

Commit d65728a

Browse files
committed
DNM - test
1 parent 65ef213 commit d65728a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,10 @@ jobs:
3232
echo "CURRENT_VERSION=${CURRENT_VERSION}" >> $GITHUB_ENV
3333
echo "CURRENT_VERSION=${CURRENT_VERSION}" >> $GITHUB_OUTPUT
3434
- name: Update Makefile if needed
35-
if: ${{ steps.check_version.outputs.current_version != steps.get_version.outputs.latest_version }}
3635
run: |
37-
sed -i "s/GOLANGCI_LINT_VERSION=.*/GOLANGCI_LINT_VERSION=${{ steps.get_version.outputs.latest_version }}/" hack/tools/Makefile
36+
sed -i "s/GOLANGCI_LINT_VERSION ?= .*/GOLANGCI_LINT_VERSION ?= ${{ steps.get_version.outputs.latest_version }}/" hack/tools/Makefile
37+
sed -i "s/GOLANGCI_LINT_VERSION ?= .*/GOLANGCI_LINT_VERSION ?= foo/" hack/tools/Makefile
3838
- name: Commit changes
39-
if: ${{ steps.check_version.outputs.current_version != steps.get_version.outputs.latest_version }}
4039
run: |
4140
git config --global user.name "github-actions[bot]"
4241
git config --global user.email "github-actions[bot]@users.noreply.github.com"
@@ -45,7 +44,6 @@ jobs:
4544
git commit -m "chore: bump golangci-lint to v${{ steps.get_version.outputs.latest_version }}"
4645
git push origin update-golangci-lint-${{ steps.get_version.outputs.latest_version }}
4746
- name: Create Pull Request
48-
if: ${{ steps.check_version.outputs.current_version != steps.get_version.outputs.latest_version }}
4947
uses: peter-evans/create-pull-request@v6
5048
with:
5149
title: "🌱 chore: bump golangci-lint to v${{ steps.get_version.outputs.latest_version }}"

0 commit comments

Comments
 (0)