File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 44
44
- name : Check version ${{ env.VERSION_NUMBER }} consistency in files
45
45
# Check src/Constants.php and CHANGELOG.md
46
46
run : |
47
- : # Check public const VERSION = 'vVERSION_NUMBER'; in CHANGELOG.md in src/Constants.php
47
+ # Check public const VERSION = 'vVERSION_NUMBER'; in CHANGELOG.md in src/Constants.php
48
48
CONSTANT_VERSION=$(grep -E "public const VERSION = 'v(.*)';" src/Constants.php | sed 's/ //g')
49
49
if [[ $CONSTANT_VERSION == "publicconstVERSION='v${{ env.VERSION_NUMBER }}';" ]]
50
50
then
54
54
exit 1
55
55
fi
56
56
57
- : # Check top ## [VERSION_NUMBER](GITHUB_URL/releases/tag/vVERSION_NUMBER) - yyyy-mm-dd in CHANGELOG.md
57
+ # Check top ## [VERSION_NUMBER](GITHUB_URL/releases/tag/vVERSION_NUMBER) - yyyy-mm-dd in CHANGELOG.md
58
58
CURRENT_DATE=$(date +'%Y-%m-%d')
59
59
echo $CURRENT_DATE
60
60
CHANGELOG_VERSION=$(grep -o -E "## \[(.*)\].* - $CURRENT_DATE" CHANGELOG.md | head -1 | sed 's/ //g')
67
67
exit 1
68
68
fi
69
69
70
- : # Check top [_Compare with previous release_](GITHUB_URL/compare/vLAST_TAG...vVERSION_NUMBER) in CHANGELOG.md
70
+ # Check top [_Compare with previous release_](GITHUB_URL/compare/vLAST_TAG...vVERSION_NUMBER) in CHANGELOG.md
71
71
COMPARISON=$(grep -oP "\/compare\/\K(.*)$" CHANGELOG.md | head -1)
72
72
LAST_TAG=$(curl -Ls -o /dev/null -w %{url_effective} ${{ env.GITHUB_URL }}/releases/latest | grep -oP "\/tag\/\K(.*)$")
73
73
if [[ $COMPARISON == "$LAST_TAG...v${{ env.VERSION_NUMBER }})" ]]
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/)
5
5
and this project adheres to [ Semantic Versioning] ( http://semver.org/spec/v2.0.0.html ) .
6
6
7
7
8
- ## [ 0.29.1 ] ( https://github.com/crowdsecurity/php-cs-bouncer/releases/tag/v0.29.1 ) - 2022-09-22
9
- [ _ Compare with previous release_ ] ( https://github.com/crowdsecurity/php-cs-bouncer/compare/v0.29.0...v0.29.1 )
8
+ ## [ 0.30.0 ] ( https://github.com/crowdsecurity/php-cs-bouncer/releases/tag/v0.30.0 ) - 2022-09-22
9
+ [ _ Compare with previous release_ ] ( https://github.com/crowdsecurity/php-cs-bouncer/compare/v0.29.0...v0.30.0 )
10
10
11
11
### Changed
12
12
- Update ` symfony/cache ` and ` symfony/config ` dependencies requirement
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ class Constants
20
20
public const DEFAULT_LAPI_URL = 'http://localhost:8080 ' ;
21
21
22
22
/** @var string The last version of this library */
23
- public const VERSION = 'v0.29 .0 ' ;
23
+ public const VERSION = 'v0.30 .0 ' ;
24
24
25
25
/** @var string The user agent used to send request to LAPI */
26
26
public const BASE_USER_AGENT = 'PHP CrowdSec Bouncer/ ' . self ::VERSION ;
You can’t perform that action at this time.
0 commit comments