forked from kubernetes/kops
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (39 loc) · 1.23 KB
/
update-deps.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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@6edd4406fa81c3da01a34fa6f6343087c207a568
with:
go-version: '1.19.5'
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
- 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@2b011faafdcbc9ceb11414d64d0573f37c774b04
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...