Skip to content

Commit 6a83d74

Browse files
committed
chore: make lint happy
1 parent a13486f commit 6a83d74

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/gomod2nix.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: 自动更新 nix 依赖
22
on:
33
push:
4+
branches:
5+
- master
46
paths:
57
- 'go.mod'
68
- 'go.sum'
@@ -23,6 +25,7 @@ jobs:
2325
- name: Check out code into the Go module directory
2426
uses: actions/checkout@master
2527
with:
28+
ref: master
2629
fetch-depth: 0
2730

2831
- name: gomod2nix update

.github/workflows/push.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: PushLint
2-
on: [ push ]
2+
on:
3+
push:
4+
branches:
5+
- master
36
jobs:
47
golangci:
58
name: lint
@@ -13,6 +16,7 @@ jobs:
1316
- name: Check out code into the Go module directory
1417
uses: actions/checkout@master
1518
with:
19+
ref: master
1620
fetch-depth: 0
1721

1822
- name: Tidy Modules

0 commit comments

Comments
 (0)