Skip to content

Commit

Permalink
rename dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Slavko Rihtaric committed Sep 2, 2024
1 parent a722a52 commit 3732d5c
Show file tree
Hide file tree
Showing 30 changed files with 27 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/sdk-gen-config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"packageVersion": "{VERSION}",
"packageName": "databox-go",
"packageName": "databox",
"goVersion":"1.22",
"goModule": "github.com/databox/databox-go"
}
16 changes: 9 additions & 7 deletions .github/workflows/generate_sdk_code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:

- name: Remove old SDK
run: |
rm -rf src/*
rm -rf databox/*
rm -rf docs/*
rm -f go.mod
rm -f go.sum
Expand All @@ -79,12 +79,14 @@ jobs:
- name: Generate SDK
run: |
java --version
java -jar ${{ runner.temp }}/openapi-generator-cli.jar generate -i ${{ runner.temp }}/openapispec/openapi.yml -g go -o ./src -c ${{ runner.temp }}/${{ env.CONFIG_FILE }} --skip-validate-spec -t ./codegen-template
cp ./src/README.md ./README.md
cp -r ./src/docs ./docs
cp ./src/go.mod ./go.mod
cp ./src/go.sum ./go.sum
java -jar ${{ runner.temp }}/openapi-generator-cli.jar generate -i ${{ runner.temp }}/openapispec/openapi.yml -g go -o ./databox -c ${{ runner.temp }}/${{ env.CONFIG_FILE }} --skip-validate-spec -t ./codegen-template
cp ./databox/README.md ./README.md
cp -r ./databox/docs ./docs
cp ./databox/go.mod ./go.mod
cp ./databox/go.sum ./go.sum
rm -f ./databox/go.mod
rm -f ./databox/go.sum
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v6
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions example/push-data/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module github.com/databox/databox-go/example

go 1.22

toolchain go1.22.5

require github.com/databox/databox-go v0.3.3 // indirect
2 changes: 2 additions & 0 deletions example/push-data/go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github.com/databox/databox-go v0.3.3 h1:ckkLdOX3nwV+wHyHRkh1xRup6ySmsOuRu74NZfIa+oQ=
github.com/databox/databox-go v0.3.3/go.mod h1:2/mXuvPbAeaAmHiGT88sidO+rSjMHCjx1TqXyXrL5J0=
8 changes: 8 additions & 0 deletions example/push-data/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package main

import databox "github.com/databox/databox-go/src"

const t = "26c8df25ec394084bd7c0d3d018e6e3c"

func main() {
}

0 comments on commit 3732d5c

Please sign in to comment.