Merge branch 'master' of https://github.com/mixbytes/audits_public #148
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: Update report list | |
on: push | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '14' | |
- name: Update reports list | |
run: | | |
(cd .scripts && npm i) | |
node .scripts/build_table.js | |
echo "::set-output name=diff::$(git diff --quiet README.md; echo $?)" | |
id: update_list | |
- name: Show diff | |
if: steps.update_list.outputs.diff == 1 | |
run: | | |
echo "There are new updates\n" | |
git diff --color README.md | cat | |
- name: Push new readme | |
if: steps.update_list.outputs.diff == 1 | |
run: | | |
git config --global user.name 'MixBytes audit' | |
git config --global user.email 'mixbytes-audit@users.noreply.github.com' | |
git add README.md | |
git commit -m "Update reports list" | |
git push | |