File tree 3 files changed +13
-5
lines changed
3 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 50
50
golint -set_exit_status=1 ./...
51
51
release_check :
52
52
runs-on : ubuntu-latest
53
+ outputs :
54
+ git_diff : ${{ steps.changes.outputs.git_diff }}
53
55
steps :
54
56
- name : Checkout repository
55
57
uses : actions/checkout@v2
66
68
- name : Output Diff
67
69
if : env.GIT_DIFF
68
70
run : |
69
- echo ${{ env.GIT_DIFF }}
71
+ echo "::set-output name=git_diff::${{ env.GIT_DIFF }}"
72
+ release :
73
+ runs-on : ubuntu-latest
74
+ needs : [release_check]
75
+ if : ${{ needs.release_check.outputs.git_diff }}
76
+ steps :
77
+ - name : output
78
+ run : |
79
+ echo "${{ needs.release_check.outputs.git_diff }}";
80
+ echo "This pull request will create a release"
Original file line number Diff line number Diff line change 90
90
- name : Output Diff
91
91
if : env.GIT_DIFF
92
92
run : |
93
- echo "::set-output name=git_diff::{{ env.GIT_DIFF}}"
93
+ echo "::set-output name=git_diff::${{ env.GIT_DIFF }}"
94
94
release :
95
95
runs-on : ubuntu-latest
96
96
needs : [release_check]
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ import (
11
11
)
12
12
13
13
func Test_getInvalidJSONData (t * testing.T ) {
14
-
15
14
tests := []struct {
16
15
input error
17
16
expected string
@@ -36,7 +35,6 @@ func Test_getInvalidJSONData(t *testing.T) {
36
35
}
37
36
38
37
func Test_getInvalidJSONPathSelector (t * testing.T ) {
39
-
40
38
tests := []struct {
41
39
input string
42
40
expected string
@@ -65,7 +63,6 @@ func Test_getInvalidJSONPathSelector(t *testing.T) {
65
63
}
66
64
67
65
func Test_getInvalidJSONPathSelectorWithReason (t * testing.T ) {
68
-
69
66
type input struct {
70
67
selector string
71
68
reason error
You can’t perform that action at this time.
0 commit comments