Perform history update after each commit to master (git action build). (#5655)

Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
This commit is contained in:
Adam R 2021-02-22 16:47:37 +01:00 committed by GitHub
parent a189c05c4f
commit f3bd24a494
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

32
.github/workflows/history.yml vendored Normal file
View File

@ -0,0 +1,32 @@
name: History update
on:
push:
branches: [ master ]
workflow_dispatch:
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout (with secret token)
uses: actions/checkout@v2
with:
token: ${{ secrets.COMMIT_TOKEN }}
ref: ${{ github.ref }}
- uses: actions/setup-node@v1
with:
node-version: 12
- name: Install Dependencies
run: npm ci
- name: Run history
run: npm run history
- name: Show history update result (diff)
run: |
git status
git diff
- 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: History update