File tree Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 5050 golint -set_exit_status=1 ./...
5151 release_check :
5252 runs-on : ubuntu-latest
53+ outputs :
54+ git_diff : ${{ steps.changes.outputs.git_diff }}
5355 steps :
5456 - name : Checkout repository
5557 uses : actions/checkout@v2
6668 - name : Output Diff
6769 if : env.GIT_DIFF
6870 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 9090 - name : Output Diff
9191 if : env.GIT_DIFF
9292 run : |
93- echo "::set-output name=git_diff::{{ env.GIT_DIFF}}"
93+ echo "::set-output name=git_diff::${{ env.GIT_DIFF }}"
9494 release :
9595 runs-on : ubuntu-latest
9696 needs : [release_check]
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ import (
1111)
1212
1313func Test_getInvalidJSONData (t * testing.T ) {
14-
1514 tests := []struct {
1615 input error
1716 expected string
@@ -36,7 +35,6 @@ func Test_getInvalidJSONData(t *testing.T) {
3635}
3736
3837func Test_getInvalidJSONPathSelector (t * testing.T ) {
39-
4038 tests := []struct {
4139 input string
4240 expected string
@@ -65,7 +63,6 @@ func Test_getInvalidJSONPathSelector(t *testing.T) {
6563}
6664
6765func Test_getInvalidJSONPathSelectorWithReason (t * testing.T ) {
68-
6966 type input struct {
7067 selector string
7168 reason error
You can’t perform that action at this time.
0 commit comments