-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (33 loc) · 997 Bytes
/
go-dep.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
name: Go deps
env:
GO_VERSION: 'stable'
on:
workflow_dispatch:
schedule:
- cron: "0 17 1 * *" # 1st of the month at 8am EDT
jobs:
dep_update:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
cache: true
- name: Checkout
uses: actions/checkout@v4
- name: Update minor and patch-level dependencies
run: go get -t -u ./...
- name: Tidy
run: go mod tidy
- name: Create pull request
uses: peter-evans/create-pull-request@v4
with:
title: "Update package dependencies + tidy"
body: Update package dependencies + tidy
branch: "deps/update"
commit-message: Update package dependencies + tidy
author: "Bot <[email protected]>"
committer: "Bot <[email protected]>"
delete-branch: true