mirror of https://github.com/kubernetes/kops.git
44 lines
1.2 KiB
YAML
44 lines
1.2 KiB
YAML
name: 'Update Dependencies'
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: '0 6 * * 5'
|
|
|
|
env:
|
|
GOPROXY: https://proxy.golang.org
|
|
|
|
permissions:
|
|
contents: write
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
update-deps:
|
|
if: ${{ github.repository == 'kubernetes/kops' }}
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- uses: actions/setup-go@268d8c0ca0432bb2cf416faae41297df9d262d7f
|
|
with:
|
|
go-version: '1.19.0'
|
|
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
|
|
- name: Update Dependencies
|
|
id: update_deps
|
|
run: |
|
|
make depup
|
|
echo "::set-output name=changes::$(git status --porcelain)"
|
|
- name: Create PR
|
|
if: ${{ steps.update_deps.outputs.changes != '' }}
|
|
uses: peter-evans/create-pull-request@671dc9c9e0c2d73f07fa45a3eb0220e1622f0c5f
|
|
with:
|
|
title: 'Update dependencies'
|
|
commit-message: Update dependencies
|
|
committer: github-actions <actions@github.com>
|
|
author: github-actions <actions@github.com>
|
|
branch: dependencies/update
|
|
branch-suffix: timestamp
|
|
base: master
|
|
delete-branch: true
|
|
labels: ok-to-test
|
|
body: |
|
|
Updating go.mod with latest dependencies...
|