Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 372fd8fdc5 | |||
| 40c7487409 | |||
| 9580480f90 | |||
| 07088bedbc |
27
.gitea/workflows/ci.yml
Normal file
27
.gitea/workflows/ci.yml
Normal file
@@ -0,0 +1,27 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: '1.21'
|
||||
|
||||
- name: Build
|
||||
run: go build ./...
|
||||
env:
|
||||
GOPRIVATE: git.marketally.com
|
||||
|
||||
- name: Test
|
||||
run: go test ./...
|
||||
env:
|
||||
GOPRIVATE: git.marketally.com
|
||||
28
.gitea/workflows/release.yml
Normal file
28
.gitea/workflows/release.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
name: Release
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: '1.21'
|
||||
|
||||
- name: Build
|
||||
run: go build ./...
|
||||
env:
|
||||
GOPRIVATE: git.marketally.com
|
||||
|
||||
- name: Create Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
generate_release_notes: true
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
2
go.mod
2
go.mod
@@ -1,4 +1,4 @@
|
||||
module code.gitea.io/actions-proto-go
|
||||
module git.marketally.com/gitcaddy/actions-proto-go
|
||||
|
||||
go 1.19
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
package pingv1connect
|
||||
|
||||
import (
|
||||
v1 "code.gitea.io/actions-proto-go/ping/v1"
|
||||
v1 "git.marketally.com/gitcaddy/actions-proto-go/ping/v1"
|
||||
connect "connectrpc.com/connect"
|
||||
context "context"
|
||||
errors "errors"
|
||||
|
||||
@@ -282,8 +282,9 @@ type DeclareRequest struct {
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
|
||||
Labels []string `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty"`
|
||||
Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
|
||||
Labels []string `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty"`
|
||||
CapabilitiesJson string `protobuf:"bytes,3,opt,name=capabilities_json,json=capabilitiesJson,proto3" json:"capabilities_json,omitempty"`
|
||||
}
|
||||
|
||||
func (x *DeclareRequest) Reset() {
|
||||
@@ -332,6 +333,13 @@ func (x *DeclareRequest) GetLabels() []string {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *DeclareRequest) GetCapabilitiesJson() string {
|
||||
if x != nil {
|
||||
return x.CapabilitiesJson
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type DeclareResponse struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
package runnerv1connect
|
||||
|
||||
import (
|
||||
v1 "code.gitea.io/actions-proto-go/runner/v1"
|
||||
v1 "git.marketally.com/gitcaddy/actions-proto-go/runner/v1"
|
||||
connect "connectrpc.com/connect"
|
||||
context "context"
|
||||
errors "errors"
|
||||
|
||||
Reference in New Issue
Block a user