2020-07-28 05:22:28 +00:00
|
|
|
name: Periodic External Update
|
2020-04-24 17:33:05 +00:00
|
|
|
on:
|
|
|
|
schedule:
|
2021-04-08 12:17:51 +00:00
|
|
|
# Run twice per day (at 1:00UTC/6pmPST, 13:00UTC/6amPST)
|
|
|
|
- cron: '0 1,13 * * *'
|
2020-08-08 21:01:45 +00:00
|
|
|
workflow_dispatch:
|
2020-04-24 17:33:05 +00:00
|
|
|
jobs:
|
2021-02-01 15:45:55 +00:00
|
|
|
periodic-auto-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
|
2021-02-01 15:45:55 +00:00
|
|
|
run: npm run updateAuto
|
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
|