generated from kubernetes/kubernetes-template-project
-
Notifications
You must be signed in to change notification settings - Fork 17
54 lines (50 loc) · 1.65 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
44
45
46
47
48
49
50
51
52
53
54
name: 'Update Dependencies'
on:
workflow_dispatch:
schedule:
- cron: '0 3 * * *'
env:
GOPROXY: https://proxy.golang.org
permissions:
contents: write
pull-requests: write
jobs:
update-deps:
if: ${{ github.repository == 'kubernetes-sigs/provider-aws-test-infra' }}
runs-on: ubuntu-22.04
steps:
- name: Checkout provider-aws-test-infra
uses: actions/checkout@v4
with:
path: src/sigs.k8s.io/provider-aws-test-infra
- name: Checkout Kubernetes
uses: actions/checkout@v4
with:
repository: kubernetes/kubernetes
path: src/k8s.io/kubernetes
- uses: actions/setup-go@v5
with:
go-version: '1.21.5'
- name: Update Dependencies
id: update_deps
run: |
hack/bump-k8s.sh
echo 'changes<<EOF' >> $GITHUB_OUTPUT
git status --porcelain >> $GITHUB_OUTPUT
echo 'EOF' >> $GITHUB_OUTPUT
working-directory: src/sigs.k8s.io/provider-aws-test-infra
- name: Create PR
if: ${{ steps.update_deps.outputs.changes != '' }}
uses: peter-evans/create-pull-request@v5
with:
title: 'Update Kubernetes dependencies to latest master'
commit-message: Update Kubernetes dependencies to latest master
committer: github-actions <[email protected]>
author: github-actions <[email protected]>
branch: dependencies/update
base: main
delete-branch: true
labels: ok-to-test
body: |
Updating go.mod with latest kubernetes related dependencies...
path: src/sigs.k8s.io/provider-aws-test-infra