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@c4a742cab115ed795e34d4513e2cf7d472deb55f
|
|
with:
|
|
go-version: '1.19.3'
|
|
- 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@331d02c7e2104af23ad5974d4d5cbc58a3e6dc77
|
|
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...
|