-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from ZPascal/update-github-action
Update the Github Action
- Loading branch information
Showing
4 changed files
with
20 additions
and
21 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,29 +87,29 @@ jobs: | |
hide-badge: true | ||
create-new-commit: true | ||
|
||
- name: "Check if coverage badge file existence" | ||
id: check_files | ||
uses: andstor/file-existence-action@v1 | ||
with: | ||
files: "docs/coverage.svg" | ||
|
||
- name: Generate coverage badge | ||
if: steps.check_files.outputs.files_exists == 'false' | ||
run: coverage-badge -o docs/coverage.svg -f | ||
run: coverage-badge -f -o docs/coverage.svg | ||
|
||
- name: Generate documentation | ||
run: pydoc-markdown --render-toc && rm -rf docs/content && mv build/docs/* docs | ||
|
||
- name: Check changed files | ||
uses: tj-actions/[email protected] | ||
id: verify-changed-files | ||
with: | ||
files: | | ||
docs | ||
- name: Commit files | ||
if: steps.check_files.outputs.files_exists == 'false' | ||
if: steps.verify-changed-files.outputs.files_changed == 'true' | ||
run: | | ||
git config --local user.email "github-actions[bot]@users.noreply.github.com" | ||
git config --local user.name "github-actions[bot]" | ||
git add --force docs | ||
git commit -m "Add coverage badge and documentation" | ||
- name: Push changes | ||
if: steps.check_files.outputs.files_exists == 'false' | ||
if: steps.verify-changed-files.outputs.files_changed == 'true' | ||
uses: ad-m/github-push-action@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
docs_dir: content | ||
nav: | ||
- Home: index.md | ||
- Grafana Dashboard Templater Documentation: | ||
- Grafana Dashboard Templater: | ||
- Model: grafana_dashboard_templater/model.md | ||
- Dashboard: grafana_dashboard_templater/dashboard.md | ||
repo_url: https://github.com/ZPascal/grafana_dashboard_templater | ||
site_name: Grafana Dashboard Templater | ||
theme: readthedocs | ||
theme: material |