Skip to content

Commit 8896198

Browse files
authored
fix: automate release note (#247)
Signed-off-by: Adrien Mannocci <[email protected]>
1 parent e8de795 commit 8896198

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

.github/workflows/release.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ concurrency:
3232

3333
env:
3434
RELEASE_VERSION: ${{ inputs.version }}
35+
RELEASE_VERSION_TAG: v${{ inputs.version }}
3536

3637
jobs:
3738
validate-tag:
@@ -45,7 +46,7 @@ jobs:
4546
- name: Validate tag does not exist on current commit
4647
uses: ./.github/workflows/validate-tag
4748
with:
48-
tag: v${{ env.RELEASE_VERSION }}
49+
tag: ${{ env.RELEASE_VERSION_TAG }}
4950
- name: Validate tag match current version
5051
run: |
5152
if [ "$(mvn -q help:evaluate -Dexpression=project.version -DforceStdout)" != "${{ env.RELEASE_VERSION }}" ]; then
@@ -113,6 +114,27 @@ jobs:
113114
artifactid: 'ecs-logging-core'
114115
version: ${{ inputs.version }}
115116

117+
create-github-release:
118+
name: "Create GitHub Release"
119+
needs:
120+
- await-maven-central-artifact
121+
runs-on: ubuntu-latest
122+
if: inputs.dry_run == false
123+
permissions:
124+
contents: write
125+
steps:
126+
- uses: actions/checkout@v4
127+
with:
128+
ref: ${{ inputs.ref }}
129+
130+
- name: Create GitHub Release
131+
env:
132+
GH_TOKEN: ${{ github.token }}
133+
run: |
134+
gh release create ${{ env.RELEASE_VERSION_TAG }} \
135+
--title="Release ${{ env.RELEASE_VERSION }}" \
136+
--generate-notes
137+
116138
post-release:
117139
name: "Bump versions and create PR"
118140
needs:

0 commit comments

Comments
 (0)