tools-sync #673
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: tools-sync | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
sync-tools-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Pull tools docs | |
run: npm run docs:tools:sync | |
- name: Check if there are changes | |
id: changes | |
run: |- | |
if [[ -z "$(git status --porcelain $STATUS_ARGS $PATHSPEC)" ]]; | |
then | |
echo '::set-output name=changed::0' | |
else | |
echo '::set-output name=changed::1' | |
fi | |
- name: Create Pull Request | |
if: steps.changes.outputs.changed == 1 | |
uses: peter-evans/create-pull-request@v3 | |
with: | |
draft: false | |
branch: tools-docs-sync | |
delete-branch: true | |
title: Update Tools Documentation | |
body: Update changes from erc725.js, tools-lsp-factory and tools-eip191-signer repositories |