forked from SocialGouv/dashlord
-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (39 loc) · 1.02 KB
/
report.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: DashLord report
on:
workflow_dispatch:
workflow_run:
workflows: ["DashLord scans"]
branches: [main]
types:
- completed
# allow only one concurrent report action
concurrency:
cancel-in-progress: true
group: report
jobs:
website:
runs-on: ubuntu-latest
name: Website
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- 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
# save full report for history
- uses: EndBug/add-and-commit@v7
with:
add: '["report.json"]'
default_author: "github_actions"
message: "chore: report update"
# deploy build to gh-pages
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: build