forked from trustwallet/assets
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix PR on pull_request_target event. (trustwallet#3115)
Co-authored-by: Catenocrypt <[email protected]>
- Loading branch information
Showing
1 changed file
with
34 additions
and
0 deletions.
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,34 @@ | ||
name: Fixes and Consistency Updates - PR | ||
on: | ||
push: | ||
branches: | ||
- '*' | ||
- '!master' | ||
pull_request-target | ||
jobs: | ||
fix-pr: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
- name: Install Dependencies | ||
run: npm ci | ||
- name: Run fix script | ||
run: npm run fix | ||
- name: Show fix result (diff); run 'npm run fix' locally | ||
run: git status | ||
- name: Run check | ||
run: npm run check | ||
- name: Run test | ||
run: npm t | ||
- name: Commit changes if any | ||
if: success() | ||
uses: stefanzweifel/[email protected] | ||
with: | ||
commit_user_name: trust-wallet-merge-bot | ||
commit_user_email: [email protected] | ||
commit_message: Fixes and Consistency Updates PR |