File tree Expand file tree Collapse file tree 4 files changed +20
-21
lines changed
content/grafana_dashboard_templater Expand file tree Collapse file tree 4 files changed +20
-21
lines changed Original file line number Diff line number Diff line change @@ -87,29 +87,29 @@ jobs:
87
87
hide-badge : true
88
88
create-new-commit : true
89
89
90
- - name : " Check if coverage badge file existence"
91
- id : check_files
92
- uses : andstor/file-existence-action@v1
93
- with :
94
- files : " docs/coverage.svg"
95
-
96
90
- name : Generate coverage badge
97
- if : steps.check_files.outputs.files_exists == 'false'
98
- run : coverage-badge -o docs/coverage.svg -f
91
+ run : coverage-badge -f -o docs/coverage.svg
99
92
100
93
- name : Generate documentation
101
94
run : pydoc-markdown --render-toc && rm -rf docs/content && mv build/docs/* docs
102
95
96
+ - name : Check changed files
97
+ uses :
tj-actions/[email protected]
98
+ id : verify-changed-files
99
+ with :
100
+ files : |
101
+ docs
102
+
103
103
- name : Commit files
104
- if : steps.check_files .outputs.files_exists == 'false '
104
+ if : steps.verify-changed-files .outputs.files_changed == 'true '
105
105
run : |
106
106
git config --local user.email "github-actions[bot]@users.noreply.github.com"
107
107
git config --local user.name "github-actions[bot]"
108
108
git add --force docs
109
109
git commit -m "Add coverage badge and documentation"
110
110
111
111
- name : Push changes
112
- if : steps.check_files .outputs.files_exists == 'false '
112
+ if : steps.verify-changed-files .outputs.files_changed == 'true '
113
113
uses : ad-m/github-push-action@master
114
114
with :
115
115
github_token : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -33,23 +33,22 @@ The class includes all necessary methods to template the selected dashboard and
33
33
# ### get\_dashboard\_json
34
34
35
35
```python
36
- def get_dashboard_json (template_values : dict ) -> dict
36
+ def get_dashboard_json (template_values : Dict ) -> Dict
37
37
```
38
38
39
- The method includes a functionality to template the selected dashboard and return the corresponding dashboard
40
- as dictionary
39
+ The method includes a functionality to template the selected dashboard and return the corresponding dashboard as dictionary
41
40
42
41
** Arguments** :
43
42
44
- - `template_values` _dict_ - Specify the inserted templating values as dict
43
+ - `template_values` _Dict_ - Specify the inserted templating values as dict
45
44
46
45
47
46
** Raises** :
48
47
49
- - `Exception ` - Unspecified error by executing the functionality
48
+ - `jinja2.TemplateNotFound ` - Jinja2 template not found
50
49
51
50
52
51
** Returns** :
53
52
54
- - `json_dashboard` _dict_ - Returns the dashboard as dict
53
+ - `json_dashboard` _Dict_ - Returns the dashboard as dict
55
54
Original file line number Diff line number Diff line change 1
1
docs_dir : content
2
2
nav :
3
3
- Home : index.md
4
- - Grafana Dashboard Templater Documentation :
4
+ - Grafana Dashboard Templater :
5
5
- Model : grafana_dashboard_templater/model.md
6
6
- Dashboard : grafana_dashboard_templater/dashboard.md
7
7
repo_url : https://github.com/ZPascal/grafana_dashboard_templater
8
8
site_name : Grafana Dashboard Templater
9
- theme : readthedocs
9
+ theme : material
You can’t perform that action at this time.
0 commit comments