Skip to content

Commit 55c16ef

Browse files
committed
add go mods auto-tidy workflow
1 parent 298ee9d commit 55c16ef

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/mods.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
on: push
2+
3+
jobs:
4+
run:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v2
8+
with:
9+
token: ${{ secrets.CZIBUILDBOT_GITHUB_TOKEN }}
10+
- uses: actions/setup-go@v2
11+
with:
12+
go-version: '1.15.2'
13+
- name: fix go modules
14+
run: |
15+
go mod tidy
16+
git add go.*
17+
git config --global user.name "github-actions[bot]"
18+
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
19+
git commit -m "tidy modules" || true
20+
git push
21+

0 commit comments

Comments
 (0)