Skip to content

Commit a25b6c5

Browse files
authored
add index -> readme check
1 parent 29bf0d2 commit a25b6c5

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/python-app.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
./build_docs.sh
6969
readme:
7070
runs-on: ubuntu-latest
71-
name: Check changed README
71+
name: Check if index.rst and README.md weren't changed together
7272
steps:
7373
- uses: actions/checkout@v3
7474
with:
@@ -83,5 +83,11 @@ jobs:
8383
- name: Check if index.rst changed when README.md file changes
8484
if: contains(steps.changed-files.outputs.modified_files, 'README.md') && !contains(steps.changed-files.outputs.modified_files, 'docs/source/index.rst')
8585
run: |
86-
echo "README.md has changed, but index.rst has not!"
86+
echo "README.md has changed but index.rst has not!"
87+
exit 1
88+
89+
- name: Check if README.md changed when index.rst file changes
90+
if: contains(steps.changed-files.outputs.modified_files, 'docs/source/index.rst') && !contains(steps.changed-files.outputs.modified_files, 'README.md')
91+
run: |
92+
echo "index.rst has changed but README.md has not!"
8793
exit 1

0 commit comments

Comments
 (0)