diff --git a/.github/workflows/go-build.yaml b/.github/workflows/go-build.yaml index 418eebf..65ed77f 100644 --- a/.github/workflows/go-build.yaml +++ b/.github/workflows/go-build.yaml @@ -21,7 +21,7 @@ jobs: uses: "actions/setup-go@v5" with: cache: true - go-version: "1.21.1" + go-version: "1.22.5" - name: "Check Go Dependencies" run: | diff --git a/.github/workflows/go-release.yaml b/.github/workflows/go-release.yaml index 0b2a09f..740aadb 100644 --- a/.github/workflows/go-release.yaml +++ b/.github/workflows/go-release.yaml @@ -26,7 +26,7 @@ jobs: uses: "actions/setup-go@v5" with: cache: true - go-version: "1.21.1" + go-version: "1.22.5" - name: "Cross Compile Binaries" run: | diff --git a/cmd/create/pbfgo/command.go b/cmd/create/pbfgo/command.go index b0b3f5a..c4bc5af 100644 --- a/cmd/create/pbfgo/command.go +++ b/cmd/create/pbfgo/command.go @@ -11,15 +11,21 @@ const ( short = "Create a protocol buffer workflow for golang code generation." long = `Create a protocol buffer workflow for golang code generation. The workflow generated here works in a setup of two Github repositories. Call them apischema -and gocode. The workflow generated with the following command is added to the +and apigocode. The workflow generated with the following command is added to the apischema repository. - workflow create pbfgo -o xh3b4sd -r gocode + workflow create pbfgo -o fancy-organization -r apigocode In order to make the workflow function correctly a deploy key must be generated and distributed. The public key is added as deploy key with write access to the -gocode repository. The private key is added as Github Action Secret to the -apischema repository. See the link below for more information. +apigocode repository. The private key is added as Github Action Secret to the +apischema repository, call it SSH_DEPLOY_KEY_APIGOCODE. A new key pair can be +generated like shown below. + + ssh-keygen -t ed25519 -C your@email.com + +More information about the Github Action used to push changes from one +repository to another can be found following the link below. https://github.com/cpina/github-action-push-to-another-repository ` diff --git a/cmd/create/pbfts/command.go b/cmd/create/pbfts/command.go index 81f2cda..57445d7 100644 --- a/cmd/create/pbfts/command.go +++ b/cmd/create/pbfts/command.go @@ -11,15 +11,21 @@ const ( short = "Create a protocol buffer workflow for typescript code generation." long = `Create a protocol buffer workflow for typescript code generation. The workflow generated here works in a setup of two Github repositories. Call them apischema -and tscode. The workflow generated with the following command is added to the +and apitscode. The workflow generated with the following command is added to the apischema repository. - workflow create pbfts -o xh3b4sd -r tscode + workflow create pbfts -o fancy-organization -r apitscode In order to make the workflow function correctly a deploy key must be generated and distributed. The public key is added as deploy key with write access to the -gocode repository. The private key is added as Github Action Secret to the -apischema repository. See the link below for more information. +apitscode repository. The private key is added as Github Action Secret to the +apischema repository, call it SSH_DEPLOY_KEY_APITSCODE. A new key pair can be +generated like shown below. + + ssh-keygen -t ed25519 -C your@email.com + +More information about the Github Action used to push changes from one +repository to another can be found following the link below. https://github.com/cpina/github-action-push-to-another-repository ` diff --git a/go.mod b/go.mod index 9aa8a7d..6a889e3 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/xh3b4sd/workflow -go 1.21 +go 1.22 require ( github.com/google/go-cmp v0.6.0 diff --git a/main.go b/main.go index 9783e4e..a3ef60a 100644 --- a/main.go +++ b/main.go @@ -1,8 +1,6 @@ package main import ( - "context" - "github.com/spf13/cobra" "github.com/xh3b4sd/logger" "github.com/xh3b4sd/tracer" @@ -11,13 +9,13 @@ import ( ) func main() { - err := mainE(context.Background()) + err := mainE() if err != nil { tracer.Panic(err) } } -func mainE(ctx context.Context) error { +func mainE() error { var err error var l logger.Interface diff --git a/pkg/version/golang.go b/pkg/version/golang.go index 2a0fa98..88ca0f1 100644 --- a/pkg/version/golang.go +++ b/pkg/version/golang.go @@ -1,5 +1,5 @@ package version const ( - Golang = "1.21.1" + Golang = "1.22.5" )