File tree Expand file tree Collapse file tree 4 files changed +56
-1
lines changed
Expand file tree Collapse file tree 4 files changed +56
-1
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ name : Release
3+
4+ on :
5+ push :
6+ tags :
7+ - " [0-9]+.[0-9]+.[0-9]+"
8+ workflow_dispatch :
9+
10+ jobs :
11+ build :
12+ uses : llaville/.github/.github/workflows/release.yml@master
13+ with :
14+ repository : ${{ github.repository }}
15+ box-output : ' '
16+ release-draft : true
Original file line number Diff line number Diff line change @@ -7,6 +7,12 @@ using the [Keep a CHANGELOG](http://keepachangelog.com) principles.
77
88## [ Unreleased]
99
10+ <!-- MARKDOWN-RELEASE:START -->
11+ ### Changed
12+
13+ - upgrade [ docker-php-extension-installer] ( https://github.com/mlocati/docker-php-extension-installer ) to version 1.4.18
14+ <!-- MARKDOWN-RELEASE:END -->
15+
1016## [ 1.5.0] - 2022-02-20
1117
1218### Changed
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ FROM ${VENDOR}/php-fpm:${PHP_VERSION}-base as base
77
88FROM base as builder
99
10- ARG DOCKER_PHP_EXTENSION_INSTALLER=1.4.16
10+ ARG DOCKER_PHP_EXTENSION_INSTALLER=1.4.18
1111ADD https://github.com/mlocati/docker-php-extension-installer/releases/download/${DOCKER_PHP_EXTENSION_INSTALLER}/install-php-extensions /usr/local/bin/
1212RUN chmod uga+x /usr/local/bin/install-php-extensions
1313
Original file line number Diff line number Diff line change 1+ #!/usr/bin/env php
2+ <?php
3+ /**
4+ * This file is part of the Docker-PHP-Toolbox package.
5+ *
6+ * For the full copyright and license information, please view the LICENSE
7+ * file that was distributed with this source code.
8+ *
9+ * @since Release 1.6.0
10+ * @author Laurent Laville
11+ */
12+
13+
14+ /**
15+ * Extracts the latest release note.
16+ *
17+ * All text found between `<!-- MARKDOWN-RELEASE:START -->` and `<!-- MARKDOWN-RELEASE:END -->` tags
18+ */
19+ $ inputFile = dirname (__DIR__ , 2 ) . DIRECTORY_SEPARATOR . 'CHANGELOG.md ' ;
20+ $ releaseNotes = [];
21+
22+ $ markdown = file_get_contents ($ inputFile );
23+ $ matched = preg_match ('/.*(<!-- MARKDOWN-RELEASE:START -->\n)(.*)?(<!-- MARKDOWN-RELEASE:END -->\n).*/smi ' , $ markdown , $ releaseNotes );
24+ if (!$ matched ) {
25+ // no release notes found
26+ exit (1 );
27+ }
28+
29+ $ bytes = file_put_contents (dirname ($ inputFile ) . DIRECTORY_SEPARATOR . 'releaseNotes.md ' , $ releaseNotes [2 ]);
30+ if (!$ bytes ) {
31+ // unable to write the current release notes
32+ exit (2 );
33+ }
You can’t perform that action at this time.
0 commit comments