File tree Expand file tree Collapse file tree 4 files changed +16
-11
lines changed Expand file tree Collapse file tree 4 files changed +16
-11
lines changed Original file line number Diff line number Diff line change 1
1
name : Release package
2
2
3
3
on :
4
+ workflow_dispatch :
4
5
workflow_run :
5
6
workflows : [Run Tests]
6
7
types : [completed]
@@ -27,20 +28,14 @@ jobs:
27
28
with :
28
29
ref : ${{ fromJSON(steps.release.outputs.pr).headBranchName }}
29
30
30
- - name : Job Summary
31
- if : ${{ steps.release.outputs.prs_created == 'true' }}
32
- run : |
33
- echo "Release PR created with the following outputs:" >> $GITHUB_STEP_SUMMARY
34
- echo "${{ toJSON(steps.release.outputs) }}" >> $GITHUB_STEP_SUMMARY
35
-
36
31
- name : Update version in Honeybadger.php
37
32
if : ${{ steps.release.outputs.prs_created == 'true' }}
38
- run : php scripts/SyncSourceCodeWithPackageVersion.php ${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}.${{ steps.release.outputs.patch }}
33
+ run : php scripts/SyncSourceCodeWithPackageVersion.php " ${{ fromJSON( steps.release.outputs.pr).title }}"
39
34
40
35
- uses : stefanzweifel/git-auto-commit-action@v5
41
36
if : ${{ steps.release.outputs.prs_created == 'true' }}
42
37
with :
43
38
create_branch : false
44
- commit_message : " chore: update version to ${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}.${{ steps.release.outputs.patch }} [skip ci] "
39
+ commit_message : " chore: update version"
45
40
commit_user_name : " honeybadger-robot"
46
41
commit_user_email : " honeybadger-robot@honeybadger.io"
Original file line number Diff line number Diff line change @@ -3,6 +3,13 @@ All notable changes to this project will be documented in this file. See [Keep a
3
3
CHANGELOG] ( http://keepachangelog.com/ ) for how to update this file. This project
4
4
adheres to [ Semantic Versioning] ( http://semver.org/ ) .
5
5
6
+ ## [ 2.19.5] ( https://github.com/honeybadger-io/honeybadger-php/compare/v2.19.4...v2.19.5 ) (2024-10-11)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * use RFC3339 extended date format ([ #200 ] ( https://github.com/honeybadger-io/honeybadger-php/issues/200 ) ) ([ 1cf4ba3] ( https://github.com/honeybadger-io/honeybadger-php/commit/1cf4ba3f8fb29e78f929633e298faf2ab3b68409 ) )
12
+
6
13
## [ 2.19.4] ( https://github.com/honeybadger-io/honeybadger-php/compare/v2.19.3...v2.19.4 ) (2024-08-28)
7
14
8
15
Original file line number Diff line number Diff line change 2
2
3
3
// Check if version input is provided
4
4
if ($ argc < 2 ) {
5
- echo "Usage: php SyncSourceCodeWithPackageVersion.php <version > \n" ;
5
+ echo "Usage: php SyncSourceCodeWithPackageVersion.php <pr-title > \n" ;
6
6
exit (1 );
7
7
}
8
8
9
- $ versionInput = $ argv [1 ];
9
+ // Given the title of the PR, we can extract the version from it
10
+ // Example: chore(master): release 4.2.0
11
+ $ prTitle = $ argv [1 ];
12
+ $ versionInput = trim (preg_replace ('/^chore\(master\): release / ' , '' , $ prTitle ));
10
13
$ filePath = 'src/Honeybadger.php ' ;
11
14
12
15
// Read the content of the file
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ class Honeybadger implements Reporter
22
22
/**
23
23
* SDK Version.
24
24
*/
25
- const VERSION = '2.19.4 ' ;
25
+ const VERSION = '2.19.5 ' ;
26
26
27
27
/**
28
28
* Honeybadger API URL.
You can’t perform that action at this time.
0 commit comments