Update proto files #15
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
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: | | |
find lnd/lnrpc -name '*.proto' -exec bash -c 'test -e proto/`basename {}` && cp {} proto' \; | |
sed -i 's/^import.*\//import "/' proto/* | |
git config user.name 'Github Actions' | |
git config user.email [email protected] | |
git add proto | |
git commit -m "Update proto files" || echo -n | |
git push |