-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
run prettier in github actions + fix github actions username and email
- Loading branch information
Showing
3 changed files
with
32 additions
and
29 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,30 @@ | ||
name: Lint, format and build | ||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
lint-format-build: | ||
name: Lint, format and build | ||
runs-on: | ||
- ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v3 | ||
- name: install npm dependencies | ||
run: npm i | ||
- name: lint, format, build and push automatic fixes | ||
run: | | ||
git config user.name 'github-actions[bot]' | ||
git config user.email '41898282+github-actions[bot]@users.noreply.github.com' | ||
shopt -s globstar | ||
npm run lint || echo -n | ||
npx prettier --config .prettierrc --ignore-path .prettierignore -w *.ts src/**/*.ts .github/**/*.yml | ||
git add src | ||
git commit -m 'Lint and format code' || echo -n | ||
git push | ||
npm run build | ||
git add dist | ||
git commit -m 'Automatic build' || echo -n | ||
git push |
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 |
---|---|---|
|
@@ -17,10 +17,10 @@ jobs: | |
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 config user.name 'Github Actions' | ||
git config user.email [email protected] | ||
git add proto | ||
git commit -m "Update proto files" || echo -n | ||
git push |