File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 :
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
You can’t perform that action at this time.
0 commit comments