Update Repolinter action (#2053)

Saves report for download
Allows manual running

Signed-off-by: Ry Jones <ry@linux.com>
This commit is contained in:
Ry Jones
2021-03-22 15:35:30 -07:00
committed by GitHub
parent a43e848e0a
commit efc80e460b

View File

@@ -1,7 +1,9 @@
# SPDX-License-Identifier: Apache-2.0
# Hyperledger Repolinter Action
name: Repolinter
on:
workflow_dispatch:
push:
branches:
- master
@@ -19,4 +21,9 @@ jobs:
- name: Checkout Code
uses: actions/checkout@v2
- name: Lint Repo
run: bundle exec /app/bin/repolinter.js --rulesetUrl https://raw.githubusercontent.com/hyperledger-labs/hyperledger-community-management-tools/master/repo_structure/repolint.json --format markdown
run: bundle exec /app/bin/repolinter.js --rulesetUrl https://raw.githubusercontent.com/hyperledger-labs/hyperledger-community-management-tools/master/repo_structure/repolint.json --format markdown > /repolinter-report.md
- name: Save repolinter-report file
uses: actions/upload-artifact@v2
with:
name: repolinter-report
path: /repolinter-report.md