DashLord report #896
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: DashLord report | |
on: | |
workflow_dispatch: | |
workflow_run: | |
workflows: ["DashLord scans"] | |
branches: [main] | |
types: | |
- completed | |
jobs: | |
website: | |
runs-on: ubuntu-latest | |
name: Website | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/cache@v2 | |
with: | |
path: '**/node_modules' | |
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} | |
# build the report | |
- id: dashlord-report | |
uses: SocialGouv/dashlord-actions/report@v1 | |
# to save the generated report.json as artifact | |
- uses: actions/upload-artifact@v2 | |
with: | |
path: report.json | |
name: report | |
if-no-files-found: error | |
# save full report for history | |
- uses: EndBug/add-and-commit@v7 | |
with: | |
add: '["report.json"]' | |
author_name: "DashlordBetaGouvBot" | |
author_email: "DashlordBetaGouvBot@incubateur.net" | |
message: "chore: report update" | |
# deploy build to gh-pages | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@4.1.0 | |
with: | |
branch: gh-pages | |
folder: build |