2020-07-28 05:22:28 +00:00
|
|
|
name: Periodic External Update
|
2020-04-24 17:33:05 +00:00
|
|
|
on:
|
|
|
|
schedule:
|
2020-07-24 23:49:07 +00:00
|
|
|
# Run twice per day (at 7:00UTC/12amPST, 19:00UTC/12pmPST)
|
|
|
|
- cron: '0 7,19 * * *'
|
2020-04-24 17:33:05 +00:00
|
|
|
jobs:
|
2020-07-29 13:42:51 +00:00
|
|
|
scripts:
|
2020-04-24 17:33:05 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.DANGER_GITHUB_API_TOKEN }}
|
2020-07-03 20:24:37 +00:00
|
|
|
ref: ${{ github.head_ref }}
|
2020-04-24 17:33:05 +00:00
|
|
|
- uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: 12
|
|
|
|
- name: Install Dependencies
|
|
|
|
run: npm ci
|
|
|
|
- name: Run scripts
|
2020-07-29 13:42:51 +00:00
|
|
|
run: npm run update
|
2020-08-05 10:59:39 +00:00
|
|
|
- name: Show fix result (diff); run 'npm run fix' locally
|
2020-07-29 13:42:51 +00:00
|
|
|
if: success()
|
|
|
|
run: git status
|
2020-04-24 17:33:05 +00:00
|
|
|
- name: Run test
|
|
|
|
run: npm t
|
|
|
|
- name: Commit changes test pased
|
|
|
|
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
|
2020-07-28 05:22:28 +00:00
|
|
|
commit_message: External Updates
|