File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,6 @@ jobs:
102
102
servicelist=$element
103
103
break
104
104
fi
105
- buildlist=${buildlist},${element}
106
105
if ! (CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o $element $service_type/$element/$element.go) then
107
106
echo "build $element failed"
108
107
exit 1
@@ -119,12 +118,13 @@ jobs:
119
118
servicelist=$element
120
119
exit 1
121
120
fi
121
+ buildlist=${buildlist},${element}
122
122
done
123
123
echo "buildlist=$buildlist" >> $GITHUB_OUTPUT
124
124
125
125
# https://github.com/appleboy/ssh-action
126
126
- name : Deploy to server
127
- if : steps.commit.outputs.servicelist != '' && steps.build.outputs.buildlist != '' && ${{ inputs.deploy }} == 'true'
127
+ if : steps.commit.outputs.servicelist != '' && steps.build.outputs.buildlist != '' && ${{ env.DEPLOY }} == 'true'
128
128
uses : appleboy/ssh-action@v1
129
129
with :
130
130
# host: ${{ secrets.HOST }}
You can’t perform that action at this time.
0 commit comments