mirror of
https://github.com/Instadapp/trustwallet-assets.git
synced 2024-07-29 22:37:31 +00:00
Run all script in daily update action (#1934)
* Run all script in daily update action * Run all scripts
This commit is contained in:
parent
a611e67db0
commit
e19f1e9f1d
16
.github/workflows/daily_update.yml
vendored
16
.github/workflows/daily_update.yml
vendored
|
@ -9,16 +9,20 @@ jobs:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.DANGER_GITHUB_API_TOKEN }}
|
token: ${{ secrets.DANGER_GITHUB_API_TOKEN }}
|
||||||
- uses: actions/setup-node@v1.4.1
|
- uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: 12
|
node-version: 12
|
||||||
- name: Install dependencies
|
- name: Install Dependencies
|
||||||
run: npm i
|
run: npm ci
|
||||||
- name: Generate list
|
- name: Run scripts
|
||||||
run: |
|
run: |
|
||||||
npm run update:bep2
|
npm run update:bep2
|
||||||
|
npm run resize
|
||||||
|
npm run format:all
|
||||||
npm run gen:list
|
npm run gen:list
|
||||||
- name: Commit daily changes if new updates
|
- name: Run final test
|
||||||
|
run: npm t
|
||||||
|
- name: Commit changes if any
|
||||||
uses: stefanzweifel/git-auto-commit-action@v4.1.2
|
uses: stefanzweifel/git-auto-commit-action@v4.1.2
|
||||||
with:
|
with:
|
||||||
commit_user_name: trust-wallet-merge-bot
|
commit_user_name: trust-wallet-merge-bot
|
||||||
|
|
4
.github/workflows/danger.yml
vendored
4
.github/workflows/danger.yml
vendored
|
@ -1,11 +1,7 @@
|
||||||
name: Danger
|
name: Danger
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
pull_request:
|
|
||||||
branches: [ master ]
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
danger:
|
danger:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
37
.github/workflows/formatter.yml
vendored
37
.github/workflows/formatter.yml
vendored
|
@ -1,37 +0,0 @@
|
||||||
name: Formatter
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- '*'
|
|
||||||
- '!master'
|
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- 'master'
|
|
||||||
jobs:
|
|
||||||
format:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
ref: ${{ github.head_ref }}
|
|
||||||
token: ${{ secrets.DANGER_GITHUB_API_TOKEN }}
|
|
||||||
- uses: actions/setup-node@v1.4.1
|
|
||||||
with:
|
|
||||||
node-version: '12.x'
|
|
||||||
- name: Restore npm cache
|
|
||||||
uses: actions/cache@v1
|
|
||||||
with:
|
|
||||||
id: cache-npm
|
|
||||||
path: ~/.npm
|
|
||||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
|
||||||
- name: Install Dependencies
|
|
||||||
if: steps.cache-npm.outputs.cache-hit != 'true'
|
|
||||||
run: npm ci
|
|
||||||
- run: npm run format:all
|
|
||||||
- run: npm run resize
|
|
||||||
- name: Commit daily changes if new updates
|
|
||||||
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: Add formating
|
|
Loading…
Reference in New Issue
Block a user