File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -32,11 +32,10 @@ jobs:
32
32
echo "CURRENT_VERSION=${CURRENT_VERSION}" >> $GITHUB_ENV
33
33
echo "CURRENT_VERSION=${CURRENT_VERSION}" >> $GITHUB_OUTPUT
34
34
- name : Update Makefile if needed
35
- if : ${{ steps.check_version.outputs.current_version != steps.get_version.outputs.latest_version }}
36
35
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
38
38
- name : Commit changes
39
- if : ${{ steps.check_version.outputs.current_version != steps.get_version.outputs.latest_version }}
40
39
run : |
41
40
git config --global user.name "github-actions[bot]"
42
41
git config --global user.email "github-actions[bot]@users.noreply.github.com"
45
44
git commit -m "chore: bump golangci-lint to v${{ steps.get_version.outputs.latest_version }}"
46
45
git push origin update-golangci-lint-${{ steps.get_version.outputs.latest_version }}
47
46
- name : Create Pull Request
48
- if : ${{ steps.check_version.outputs.current_version != steps.get_version.outputs.latest_version }}
49
47
uses : peter-evans/create-pull-request@v6
50
48
with :
51
49
title : " 🌱 chore: bump golangci-lint to v${{ steps.get_version.outputs.latest_version }}"
You can’t perform that action at this time.
0 commit comments