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 }}
|
2021-12-09 18:55:31 +00:00
|
|
|
|
2021-12-19 21:39:53 +00:00
|
|
|
- name: Set up Go
|
2021-12-09 18:55:31 +00:00
|
|
|
uses: actions/setup-go@v2
|
2020-08-07 09:29:42 +00:00
|
|
|
with:
|
2022-05-26 14:55:41 +00:00
|
|
|
go-version: 1.18
|
2021-12-09 18:55:31 +00:00
|
|
|
id: go
|
|
|
|
|
|
|
|
- name: Run update auto
|
2022-01-14 14:02:39 +00:00
|
|
|
run: make update-auto
|
2021-12-09 18:55:31 +00:00
|
|
|
|
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
|
2021-12-09 18:55:31 +00:00
|
|
|
|
2020-08-07 09:29:42 +00:00
|
|
|
- name: Run check
|
2022-01-14 14:02:39 +00:00
|
|
|
run: make check
|
2021-12-09 18:55:31 +00:00
|
|
|
|
2020-08-07 09:29:42 +00:00
|
|
|
- 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
|
2021-12-09 18:55:31 +00:00
|
|
|
commit_message: External Updates
|