trustwallet-assets/.github/workflows/history.yml
Adam R f3bd24a494
Perform history update after each commit to master (git action build). (#5655)
Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
2021-02-22 16:47:37 +01:00

33 lines
860 B
YAML

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