|
8 | 8 | description: "The version to be released. This is checked for consistency with the branch name and configuration"
|
9 | 9 | required: true
|
10 | 10 | type: "string"
|
11 |
| - jira-version-number: |
12 |
| - description: "JIRA version ID (e.g. 54321)" |
13 |
| - required: true |
14 |
| - type: "string" |
15 | 11 |
|
16 | 12 | env:
|
17 | 13 | # TODO: Use different token
|
18 | 14 | GH_TOKEN: ${{ secrets.MERGE_UP_TOKEN }}
|
19 | 15 | GIT_AUTHOR_NAME: "DBX PHP Release Bot"
|
20 | 16 | GIT_AUTHOR_EMAIL: "dbx-php@mongodb.com"
|
21 |
| - default-release-message: | |
22 |
| - The PHP team is happy to announce that version {0} of the MongoDB integration for Laravel is now available. |
23 |
| -
|
24 |
| - **Release Highlights** |
25 |
| -
|
26 |
| - TODO: one or more paragraphs describing important changes in this release |
27 |
| -
|
28 |
| - A complete list of resolved issues in this release may be found in [JIRA](https://jira.mongodb.org/secure/ReleaseNote.jspa?version={1}&projectId=22488). |
29 |
| -
|
30 |
| - **Documentation** |
31 |
| -
|
32 |
| - Documentation for this library may be found in the [Readme](https://github.com/mongodb/laravel-mongodb/blob/$VERSION/README.md). |
33 |
| -
|
34 |
| - **Installation** |
35 |
| -
|
36 |
| - This library may be installed or upgraded with: |
37 |
| - |
38 |
| - composer require mongodb/laravel-mongodb:{0} |
39 |
| - |
40 |
| - Installation instructions for the `mongodb` extension may be found in the [PHP.net documentation](https://php.net/manual/en/mongodb.installation.php). |
41 | 17 |
|
42 | 18 | jobs:
|
43 | 19 | prepare-release:
|
|
80 | 56 | git config user.name "${GIT_AUTHOR_NAME}"
|
81 | 57 | git config user.email "${GIT_AUTHOR_EMAIL}"
|
82 | 58 |
|
83 |
| - # Create a draft release with release message filled in |
84 |
| - - name: "Prepare release message" |
85 |
| - run: | |
86 |
| - cat > release-message <<'EOL' |
87 |
| - ${{ format(env.default-release-message, inputs.version, inputs.jira-version-number) }} |
88 |
| - EOL |
89 |
| -
|
| 59 | + # Create draft release with release notes |
90 | 60 | - name: "Create draft release"
|
91 |
| - run: echo "RELEASE_URL=$(gh release create ${{ inputs.version }} --target ${{ github.ref_name }} --title "${{ inputs.version }}" --notes-file release-message --draft)" >> "$GITHUB_ENV" |
| 61 | + run: echo "RELEASE_URL=$(gh release create ${{ inputs.version }} --target ${{ github.ref_name }} --title "${{ inputs.version }}" --generate-notes --draft)" >> "$GITHUB_ENV" |
92 | 62 |
|
93 | 63 | # This step creates the signed release tag
|
94 | 64 | - name: "Create release tag"
|
|
0 commit comments