v2: test env

Signed-off-by: nfel <nfilsaraee@gmail.com>
This commit is contained in:
nfel 2024-11-26 11:41:10 +03:30
parent 22c5992046
commit 7b2eef8657
Signed by: nfel
GPG Key ID: DCC0BF3F92B0D45F
4 changed files with 23 additions and 24 deletions

View File

@ -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 }}

View File

@ -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;
}

View File

@ -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) {}
}

View File

@ -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