CI: Fix next release check in release workflow
Browse files at this commitdbe79b78734598e783ea19565a4e18c5f5babcf3Parent: 9438f591 changed file +6 -3
.github/workflows/release.ymlmodified+6 -3
| @@ -28,9 +28,12 @@ jobs: | |||
| 28 | 28 | ||
| 29 | - name: Check for unreplaced "Since:" in the wiki | 29 | - name: Check for unreplaced "Since:" in the wiki |
| 30 | run: | | 30 | run: | |
| 31 | - if grep --recursive 'Since: next release' wiki; then | 31 | + # Fail if a match is found (exit code 0) |
| 32 | - exit 1 | 32 | + grep --recursive 'Since: next release' docs/wiki && exit 1 |
| 33 | - fi | 33 | + |
| 34 | + # Fail if grep failed (exit code 2) | ||
| 35 | + status=$? | ||
| 36 | + if [ $status -ne 1 ]; then exit $status; fi | ||
| 34 | 37 | ||
| 35 | - name: Install dependencies | 38 | - name: Install dependencies |
| 36 | run: | | 39 | run: | |