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-08-08 21:01:45 +00:00
|
|
|
workflow_dispatch:
|
2020-04-24 17:33:05 +00:00
|
|
|
jobs:
|
2020-08-07 09:29:42 +00:00
|
|
|
periodic-update:
|
2020-04-24 17:33:05 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2020-08-07 09:29:42 +00:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
2020-11-01 06:01:39 +00:00
|
|
|
token: ${{ secrets.COMMIT_TOKEN }}
|
2020-08-07 09:29:42 +00:00
|
|
|
ref: ${{ github.head_ref }}
|
|
|
|
- uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: 12
|
|
|
|
- name: Install Dependencies
|
|
|
|
run: npm ci
|
|
|
|
- name: Run scripts
|
|
|
|
run: npm run update
|
2020-08-10 08:56:41 +00:00
|
|
|
- name: Show update result (diff)
|
2020-08-07 09:29:42 +00:00
|
|
|
if: success()
|
2020-08-10 08:56:41 +00:00
|
|
|
run: |
|
|
|
|
git status
|
|
|
|
git diff
|
2020-08-07 09:29:42 +00:00
|
|
|
- name: Run check
|
|
|
|
run: npm run check
|
|
|
|
- name: Run test
|
|
|
|
run: npm t
|
|
|
|
- name: Commit changes
|
|
|
|
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: External Updates
|