-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create PR in tonapi-go repo with updated sdk
- Loading branch information
1 parent
eca4db5
commit de74964
Showing
2 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: Create a pull request to update TonAPI SDK | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
update_sdk: | ||
name: Update TonAPI SDK | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: create pull request | ||
run: make update-sdk | ||
env: | ||
GH_TOKEN: ${{ github.token }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,4 +19,18 @@ install_i18n: | |
git clone https://github.com/mr-tron/go-i18n/ | ||
cd go-i18n/v2 && go build -o $GOPATH/bin/goi18n github.com/nicksnyder/go-i18n/v2/goi18n | ||
run: | ||
go run cmd/api/main.go | ||
go run cmd/api/main.go | ||
|
||
|
||
TMPDIR := $(shell mktemp -d) | ||
update-sdk: | ||
git clone [email protected]:tonkeeper/tonapi-go.git $(TMPDIR) \ | ||
&& cp -v api/openapi.yml $(TMPDIR)/api/openapi.yml \ | ||
&& cd $(TMPDIR) \ | ||
&& git checkout -b update \ | ||
&& go generate \ | ||
&& git add . \ | ||
&& git commit -m "update sdk" \ | ||
&& git push -u origin update -f \ | ||
&& gh pr create --title "Update TonAPI SDK" --body "This PR was created automatically" --head update --base main | ||
|