minikube/.github/workflows/update-golint-version.yml

53 lines
2.0 KiB
YAML
Raw Normal View History

2021-08-12 23:11:54 +00:00
name: "update-golint-version"
2021-08-12 23:01:41 +00:00
on:
workflow_dispatch:
schedule:
# every Monday at around 3 am pacific/10 am UTC
- cron: "0 10 * * 1"
env:
GOPROXY: https://proxy.golang.org
2022-11-09 14:59:32 +00:00
GO_VERSION: '1.19.3'
permissions:
contents: read
2021-08-12 23:01:41 +00:00
jobs:
bump-golint-version:
2021-09-28 03:01:27 +00:00
runs-on: ubuntu-20.04
2021-08-12 23:01:41 +00:00
steps:
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
- uses: actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f
2021-08-12 23:01:41 +00:00
with:
go-version: ${{env.GO_VERSION}}
cache: true
cache-dependency-path: ./go.sum
2021-08-12 23:01:41 +00:00
- name: Bump Golint Versions
id: bumpGolint
run: |
make update-golint-version
# The following is to support multiline with GITHUB_OUTPUT, see https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#multiline-strings
2022-11-04 23:20:08 +00:00
echo "changes<<EOF" >> $GITHUB_OUTPUT
echo "$(git status --porcelain)" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
2021-08-12 23:01:41 +00:00
- name: Create PR
if: ${{ steps.bumpGolint.outputs.changes != '' }}
uses: peter-evans/create-pull-request@2b011faafdcbc9ceb11414d64d0573f37c774b04
2021-08-12 23:01:41 +00:00
with:
token: ${{ secrets.MINIKUBE_BOT_PAT }}
2021-11-08 13:34:00 +00:00
commit-message: bump golint versions
2021-08-12 23:01:41 +00:00
committer: minikube-bot <minikube-bot@google.com>
author: minikube-bot <minikube-bot@google.com>
branch: auto_bump_golint_version
push-to-fork: minikube-bot/minikube
base: master
delete-branch: true
title: 'bump golint version'
labels: ok-to-test
body: |
2022-11-22 17:52:40 +00:00
Golangci-lint Project released a [new version](https://github.com/golangci/golangci-lint/releases),
2021-08-12 23:01:41 +00:00
This PR was auto-generated by `make update-golint-version` using [update-golint-version.yml](https://github.com/kubernetes/minikube/tree/master/.github/workflows/update-golint-version.yml) CI Workflow.