v2: test env
Signed-off-by: nfel <nfilsaraee@gmail.com>
This commit is contained in:
parent
22c5992046
commit
7b2eef8657
@ -11,23 +11,9 @@ jobs:
|
||||
buf:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
REPO: ${{ gitea.action_repository }}
|
||||
REPO: ${{ gitea.repository }}
|
||||
steps:
|
||||
- run: |
|
||||
echo "test"
|
||||
echo ${{ gitea.server_url }}
|
||||
echo ${{ gitea.token }}
|
||||
echo ${{ secrets.PROD_REG_TOKEN }}
|
||||
echo ${{ gitea.ref_name }}
|
||||
echo ${{ gitea.action_ref }}
|
||||
echo ${{ gitea.action_path }}
|
||||
echo ${{ env.REPO }} $REPO
|
||||
echo ${{ gitea.base_ref }}
|
||||
echo ${{ gitea.env }}
|
||||
echo ${{ gitea.event }}
|
||||
echo ${{ gitea.head_ref }}
|
||||
echo ${{ gitea.job }}
|
||||
echo ${{ gitea.run_attempt }}
|
||||
echo ${{ gitea.triggering_actor }}
|
||||
echo ${{ gitea.workflow_ref }}
|
||||
echo ${{ gitea.workspace }}
|
||||
echo ${{ env.REPO }}
|
||||
echo $REPO
|
||||
echo ${{ github.repository }}
|
||||
|
||||
@ -26,7 +26,6 @@ message LogEvent {
|
||||
optional uint64 id = 1; // Record Id of Log stored in db
|
||||
string content = 2;
|
||||
string effective_user = 3;
|
||||
optional LogEvent prev_cause = 4;
|
||||
optional LogSource source = 5;
|
||||
Importance importance = 6;
|
||||
Meta meta = 7;
|
||||
@ -38,9 +37,20 @@ message LogEventList {
|
||||
/*
|
||||
Internal Msg
|
||||
*/
|
||||
|
||||
message SMSChangeLog {
|
||||
uint32 when_ts = 1;
|
||||
string what = 2;
|
||||
}
|
||||
|
||||
message SMS {
|
||||
string recipient = 1; //recipient
|
||||
string text = 2;
|
||||
optional string sender = 3;
|
||||
Meta meta = 4;
|
||||
repeated SMSChangeLog change_log = 5;
|
||||
}
|
||||
|
||||
message SMSList {
|
||||
repeated SMS sms = 1;
|
||||
}
|
||||
|
||||
@ -6,7 +6,7 @@ import "alert/v1/msg.proto";
|
||||
import "base/v1/msg.proto";
|
||||
|
||||
service AlertSrv {
|
||||
rpc Log(LogEvent) returns (base.v1.StatusRes) {}
|
||||
rpc LogHistory(base.v1.IdReq) returns(LogEventList) {}
|
||||
rpc StatusChange(LogEvent) returns (base.v1.StatusRes) {}
|
||||
rpc Emit(LogEvent) returns (base.v1.StatusRes) {}
|
||||
rpc Update(LogEvent) returns (base.v1.StatusRes) {}
|
||||
rpc Get() returns (base.v1.StatusRes) {}
|
||||
}
|
||||
|
||||
@ -28,8 +28,11 @@ plugins:
|
||||
out: stub/doc/md
|
||||
# # NOTE: Gateway
|
||||
# # - remote: buf.build/grpc-ecosystem/gateway:v2.16.2
|
||||
# - local: protoc-gen-grpc-gateway
|
||||
# out: stub/go
|
||||
- local: protoc-gen-grpc-gateway
|
||||
out: stub/go
|
||||
opt:
|
||||
- standalone=true
|
||||
- generate_unbound_methods=true
|
||||
# # NOTE: SWAGGER json files
|
||||
# # - remote: buf.build/grpc-ecosystem/openapiv2:v2.16.2
|
||||
# - local: protoc-gen-openapiv2
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user