mirror of
https://github.com/Instadapp/trustwallet-assets.git
synced 2024-07-29 22:37:31 +00:00
Fix build for forks. (#3116)
Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
This commit is contained in:
parent
319db19d4f
commit
5d8ed57d09
|
@ -3,7 +3,7 @@ on:
|
|||
push:
|
||||
branches: [ master ]
|
||||
jobs:
|
||||
test:
|
||||
check:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
11
.github/workflows/fix-dryrun.yml
vendored
11
.github/workflows/fix-dryrun.yml
vendored
|
@ -1,9 +1,5 @@
|
|||
name: Fixes and Consistency Updates - Dry run
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- '*'
|
||||
- '!master'
|
||||
pull_request:
|
||||
branches: [master]
|
||||
jobs:
|
||||
|
@ -18,9 +14,10 @@ jobs:
|
|||
run: npm ci
|
||||
- name: Run fix script
|
||||
run: npm run fix
|
||||
- name: Show fix result (diff); run 'npm run fix' locally
|
||||
if: success()
|
||||
run: git status
|
||||
- name: Show fix result (diff); run 'npm run fix' locally
|
||||
run: |
|
||||
git status
|
||||
git diff
|
||||
- name: Run check
|
||||
run: npm run check
|
||||
- name: Run test
|
||||
|
|
|
@ -1,17 +1,15 @@
|
|||
name: Fixes and Consistency Updates - PR
|
||||
name: Fixes and Consistency Updates - Fork
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- '*'
|
||||
- '!master'
|
||||
pull_request-target
|
||||
branches-ignore: ['trustwallet/*']
|
||||
jobs:
|
||||
fix-pr:
|
||||
fix-fork:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
ref: ${{ github.ref }}
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 12
|
||||
|
@ -20,7 +18,9 @@ jobs:
|
|||
- name: Run fix script
|
||||
run: npm run fix
|
||||
- name: Show fix result (diff); run 'npm run fix' locally
|
||||
run: git status
|
||||
run: |
|
||||
git status
|
||||
git diff
|
||||
- name: Run check
|
||||
run: npm run check
|
||||
- name: Run test
|
||||
|
@ -31,4 +31,4 @@ jobs:
|
|||
with:
|
||||
commit_user_name: trust-wallet-merge-bot
|
||||
commit_user_email: mergebot@trustwallet.com
|
||||
commit_message: Fixes and Consistency Updates PR
|
||||
commit_message: Fixes and Consistency Updates on a Fork
|
35
.github/workflows/fix-pr.yml
vendored
35
.github/workflows/fix-pr.yml
vendored
|
@ -1,35 +0,0 @@
|
|||
name: Fixes and Consistency Updates - PR
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- '*'
|
||||
- '!master'
|
||||
pull_request:
|
||||
branches: [master]
|
||||
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/git-auto-commit-action@v4.1.2
|
||||
with:
|
||||
commit_user_name: trust-wallet-merge-bot
|
||||
commit_user_email: mergebot@trustwallet.com
|
||||
commit_message: Fixes and Consistency Updates PR
|
8
.github/workflows/fix.yml
vendored
8
.github/workflows/fix.yml
vendored
|
@ -1,7 +1,7 @@
|
|||
name: Fixes and Consistency Updates
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
branches: [ 'trustwallet/master' ]
|
||||
jobs:
|
||||
fix:
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -9,7 +9,7 @@ jobs:
|
|||
- uses: actions/checkout@v2
|
||||
with:
|
||||
token: ${{ secrets.DANGER_GITHUB_API_TOKEN }}
|
||||
ref: ${{ github.head_ref }}
|
||||
ref: ${{ github.ref }}
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 12
|
||||
|
@ -18,7 +18,9 @@ jobs:
|
|||
- name: Run fix script
|
||||
run: npm run fix
|
||||
- name: Show fix result (diff); run 'npm run fix' locally
|
||||
run: git status
|
||||
run: |
|
||||
git status
|
||||
git diff
|
||||
- name: Run check
|
||||
run: npm run check
|
||||
- name: Run test
|
||||
|
|
3
.github/workflows/pr-ci.yml
vendored
3
.github/workflows/pr-ci.yml
vendored
|
@ -17,4 +17,5 @@ jobs:
|
|||
- uses: bahmutov/npm-install@v1
|
||||
- name: Run check
|
||||
run: npm run check
|
||||
- run: npm t
|
||||
- name: Run test
|
||||
run: npm t
|
||||
|
|
Loading…
Reference in New Issue
Block a user