-
-
Notifications
You must be signed in to change notification settings - Fork 144
39 lines (34 loc) · 872 Bytes
/
gosum.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
name: "Gosum"
on:
push:
branches:
- "master"
paths:
- ".github/workflows/gosum.yaml"
- "go.mod"
- "go.sum"
jobs:
gosum:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.14
- name: Tidy
run: |
rm -f go.sum
go mod tidy
- name: Create Pull Request
uses: peter-evans/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: ":hammer: Tidy up the Go modules"
title: "Tidy up the Go module"
body: |
Current `go.mod` and `go.sum` don't match the source code.
branch: go-mod-tidy
branch-suffix: short-commit-hash
labels: "bug"