forked from awslabs/amazon-eks-ami
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (46 loc) · 1.48 KB
/
update-dependency.yaml
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
---
name: 'Update Dependencies'
on:
workflow_dispatch:
schedule:
# every Monday
- cron: '0 0 * * 1'
env:
GOPROXY: https://proxy.golang.org
permissions:
contents: read
jobs:
update-deps:
if: ${{ github.repository == 'awslabs/amazon-eks-ami' }}
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # 4.1.7
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # 5.0.1
with:
go-version-file: 'nodeadm/go.mod'
- name: Update Nodeadm Dependencies
id: update_deps
run: |
cd nodeadm
make update-deps
echo 'changes<<EOF' >> $GITHUB_OUTPUT
git status --porcelain >> $GITHUB_OUTPUT
echo 'EOF' >> $GITHUB_OUTPUT
- name: Create PR
if: ${{ steps.update_deps.outputs.changes != '' }}
uses: peter-evans/create-pull-request@6d6857d36972b65feb161a90e484f2984215f83e # 6.0.5
with:
title: 'Update dependencies'
commit-message: Update dependencies
committer: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
branch: dependencies/update
base: main
delete-branch: true
labels: |
changelog/exclude
body: |
Updating go.mod with latest dependencies.