File tree Expand file tree Collapse file tree 3 files changed +22
-12
lines changed Expand file tree Collapse file tree 3 files changed +22
-12
lines changed Original file line number Diff line number Diff line change 15
15
with :
16
16
persist-credentials : false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token.
17
17
fetch-depth : 0 # otherwise, there would be errors pushing refs to the destination repository.
18
+ ref : ${{ github.head_ref }}
18
19
19
20
- name : Setup go
20
21
uses : actions/setup-go@v4
@@ -40,17 +41,18 @@ jobs:
40
41
with :
41
42
files : README.md
42
43
43
- - name : Commit changes
44
+ - name : Commit and push changes
44
45
if : steps.verify-changed-files.outputs.files_changed == 'true'
45
46
run : |
46
- git config --local user.email "action@ github.com "
47
- git config --local user.name "GitHub Action "
47
+ git config --local user.email "${{ github.event.pull_request.user.email }} "
48
+ git config --local user.name "${{ github.event.pull_request.user.name }} "
48
49
git add README.md
49
- git commit -m "chore: Updated coverage badge."
50
-
51
- - name : Push changes
52
- if : steps.verify-changed-files.outputs.files_changed == 'true'
53
- uses : ad-m/github-push-action@master
54
- with :
55
- github_token : ${{ github.token }}
56
- branch : ${{ github.head_ref }}
50
+ git commit --amend --no-edit
51
+ git push origin HEAD:${{ github.head_ref }}
52
+
53
+ # - name: Push changes
54
+ # if: steps.verify-changed-files.outputs.files_changed == 'true'
55
+ # uses: ad-m/github-push-action@master
56
+ # with:
57
+ # github_token: ${{ github.token }}
58
+ # branch: ${{ github.head_ref }}
Original file line number Diff line number Diff line change @@ -13,6 +13,6 @@ func TestDebugLogging(t *testing.T) {
13
13
debug .Debug ().Msg ("debug message" )
14
14
debug .Info ().Msg ("info message" )
15
15
debug .Error ().Msg ("error message" )
16
- debug .Warn ().Msg ("warning message" )
16
+ // debug.Warn().Msg("warning message")
17
17
})
18
18
}
Original file line number Diff line number Diff line change @@ -128,4 +128,12 @@ func TestLogger(t *testing.T) {
128
128
assert .NoError (st , err )
129
129
assert .Contains (st , string (output ), testString )
130
130
})
131
+
132
+ t .Run ("logs" , func (st * testing.T ) {
133
+ log := logger .New ()
134
+ log .Debug ().Msg ("debug message" )
135
+ log .Info ().Msg ("info message" )
136
+ log .Error ().Msg ("error message" )
137
+ log .Warn ().Msg ("warning message" )
138
+ })
131
139
}
You can’t perform that action at this time.
0 commit comments