-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added workflow to check documentation
- Loading branch information
Pavlo Dudnytskyi
committed
Jun 24, 2024
1 parent
499d8e0
commit 381d588
Showing
4 changed files
with
48 additions
and
18 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: documentation check | ||
|
||
on: | ||
push: | ||
pull_request: | ||
branches: [ "master", "dev" , "experimental" ] | ||
|
||
jobs: | ||
tests: | ||
name: documentation check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/[email protected] | ||
- name: Run script and save results | ||
run: python docs/script/run_script.py README.tmp | ||
- name: Compare temp file with readme.rst | ||
run: diff -u README.rst README.tmp > doc_cmp.result | ||
- name: Fail build if files are not identical | ||
run: | | ||
if [ $? -ne 0 ]; then | ||
echo "Files are not identical" | ||
cat doc_cmp.result | ||
exit 1 | ||
fi |
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,8 +1,9 @@ | ||
# Gitignore settings for ESPHome | ||
/.esphome/ | ||
__pycache__/ | ||
/.vscode/ | ||
/secrets.yaml | ||
/buildlog.txt | ||
*.bak | ||
*.local.yaml | ||
# Gitignore settings for ESPHome | ||
/.esphome/ | ||
__pycache__/ | ||
/.vscode/ | ||
/secrets.yaml | ||
/buildlog.txt | ||
*.bak | ||
*.local.yaml | ||
*.tmp |
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
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