File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
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_exists == 'false'
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_exists == 'false'
113
113
uses : ad-m/github-push-action@master
114
114
with :
115
115
github_token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments