Skip to content

Commit fe04118

Browse files
ci(release): Modify Constants.php check
1 parent 02709a3 commit fe04118

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ jobs:
8686
fi
8787
CONSTANT_VERSION=$(grep -E "WordPress CrowdSec Bouncer/v(.*)" inc/Constants.php | sed 's/[\x27(),/ ]//g')
8888
echo $CONSTANT_VERSION
89-
echo "publicconstCROWDSEC_BOUNCER_USER_AGENTWordPressCrowdSecBouncerv${{ env.VERSION_NUMBER }}"
90-
if [[ $CONSTANT_VERSION == "publicconstCROWDSEC_BOUNCER_USER_AGENTWordPressCrowdSecBouncerv${{ env.VERSION_NUMBER }};" ]]
89+
echo "publicconstCROWDSEC_BOUNCER_USER_AGENT=WordPressCrowdSecBouncerv${{ env.VERSION_NUMBER }};"
90+
if [[ $CONSTANT_VERSION == "publicconstCROWDSEC_BOUNCER_USER_AGENT=WordPressCrowdSecBouncerv${{ env.VERSION_NUMBER }};" ]]
9191
then
9292
echo "Version in inc/Constants.php: OK"
9393
else

0 commit comments

Comments
 (0)