mirror of
https://github.com/stakwork/sphinx-relay.git
synced 2026-08-13 12:33:24 +02:00
notes:
* grpcjs doesnt like ByteBuffer, it has been replaced with the nodejs
native Buffer
* grpcjs doesnt like calls without an argument, add {} instead
see src/grpc/subscribe.ts:24
* grpcjs converts uint64 in a map key (map<uint64, ...>) to some hash,
this is fixed with protobuf_long.patch which is automatically applied
after running `npm install`
this pr would fix the bug upstream https://github.com/protobufjs/protobuf.js/pull/1669
35 lines
1.1 KiB
YAML
35 lines
1.1 KiB
YAML
name: Update proto files
|
|
on:
|
|
schedule:
|
|
- cron: '0 0 1 * *'
|
|
|
|
jobs:
|
|
update_proto:
|
|
runs-on:
|
|
- ubuntu-latest
|
|
steps:
|
|
- name: checkout
|
|
uses: actions/checkout@v3
|
|
- name: checkout LND
|
|
uses: actions/checkout@v3
|
|
with:
|
|
repository: lightningnetwork/lnd
|
|
path: lnd
|
|
- name: update proto files
|
|
run: |
|
|
git config user.name 'github-actions[bot]'
|
|
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
|
|
find lnd/lnrpc -name '*.proto' -exec bash -c 'test -e proto/`basename {}` && cp {} proto' \;
|
|
sed -i 's/^import.*\//import "/' proto/*
|
|
git add proto
|
|
- name: update generated types
|
|
run: |
|
|
bash grpc_gen_types.sh
|
|
npm run build
|
|
git add src/grpc/types dist
|
|
- name: commit changes
|
|
run: |
|
|
git config user.name 'Github Actions'
|
|
git config user.email github-actions@github.com
|
|
git commit -m 'Update proto files and types' || echo -n
|
|
git push
|