File tree 4 files changed +64
-93
lines changed
4 files changed +64
-93
lines changed Original file line number Diff line number Diff line change 1
1
version : 2
2
2
updates :
3
- - package-ecosystem : gomod
4
- directory : " /"
5
- schedule :
6
- interval : weekly
7
- time : " 10:00"
8
- timezone : PST8PDT
9
- pull-request-branch-name :
10
- separator : " -"
11
- open-pull-requests-limit : 10
12
- reviewers :
13
- - trussworks/waddlers
14
- labels :
15
- - dependencies
3
+ - package-ecosystem : gomod
4
+ directory : " /"
5
+ schedule :
6
+ interval : weekly
7
+ time : " 10:00"
8
+ timezone : PST8PDT
9
+ pull-request-branch-name :
10
+ separator : " -"
11
+ open-pull-requests-limit : 10
12
+ reviewers :
13
+ - trussworks/waddlers
14
+ labels :
15
+ - " dependencies"
16
+ - " automerge"
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : tidy
2
+ on :
3
+ pull_request :
4
+ paths :
5
+ - " .github/workflows/gosum.yml"
6
+ - " go.mod"
7
+ - " go.sum"
8
+
9
+ jobs :
10
+ tidy :
11
+ name : run go mod tidy and updated
12
+ runs-on : ubuntu-latest
13
+ if : github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]'
14
+ steps :
15
+ - name : checkout
16
+ uses : actions/checkout@v1
17
+ - name : reattach HEAD to Head Ref
18
+ # b/c checkout action leaves in detached head state https://github.com/actions/checkout/issues/6
19
+ run : git checkout "$(echo ${{ github.head_ref }})"
20
+ if : github.head_ref != ''
21
+ - name : setup go
22
+ uses : actions/setup-go@v1
23
+ with :
24
+ go-version : " 1.14"
25
+ - name : Tidy
26
+ run : |
27
+ go version
28
+ go mod tidy
29
+ - name : set up Git
30
+ env :
31
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
32
+ run : |
33
+ git config user.name "${GITHUB_ACTOR}"
34
+ git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
35
+ git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
36
+ - name : commit and push changes
37
+ run : |
38
+ git add .
39
+ if output=$(git status --porcelain) && [ ! -z "$output" ]; then
40
+ git commit -m 'Fix go modules'
41
+ git push
42
+ fi
Original file line number Diff line number Diff line change
1
+ version = 1
2
+
3
+ [merge ]
4
+ require_automerge_label = true
5
+ delete_branch_on_merge = true
6
+
7
+ [approve ]
8
+ auto_approve_usernames = [" dependabot" ]
You can’t perform that action at this time.
0 commit comments