forge
Explore
Log in

Don't you dare go Hollow

CI: Fix next release check in release workflow

Browse files at this commit

dbe79b78734598e783ea19565a4e18c5f5babcf3Ivan MolodetskikhParent: 9438f59
.github/workflows/release.ymlmodified+6 -3
@@ -28,9 +28,12 @@ jobs:
28 28
29 - name: Check for unreplaced "Since:" in the wiki29 - name: Check for unreplaced "Since:" in the wiki
30 run: |30 run: |
31- if grep --recursive 'Since: next release' wiki; then31+ # Fail if a match is found (exit code 0)
32- exit 132+ grep --recursive 'Since: next release' docs/wiki && exit 1
33- fi33+
34+ # Fail if grep failed (exit code 2)
35+ status=$?
36+ if [ $status -ne 1 ]; then exit $status; fi
34 37
35 - name: Install dependencies38 - name: Install dependencies
36 run: |39 run: |