Skip to content

Commit

Permalink
fix: automate release note (#247)
Browse files Browse the repository at this point in the history
Signed-off-by: Adrien Mannocci <[email protected]>
  • Loading branch information
amannocci authored Mar 29, 2024
1 parent e8de795 commit 8896198
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ concurrency:

env:
RELEASE_VERSION: ${{ inputs.version }}
RELEASE_VERSION_TAG: v${{ inputs.version }}

jobs:
validate-tag:
Expand All @@ -45,7 +46,7 @@ jobs:
- name: Validate tag does not exist on current commit
uses: ./.github/workflows/validate-tag
with:
tag: v${{ env.RELEASE_VERSION }}
tag: ${{ env.RELEASE_VERSION_TAG }}
- name: Validate tag match current version
run: |
if [ "$(mvn -q help:evaluate -Dexpression=project.version -DforceStdout)" != "${{ env.RELEASE_VERSION }}" ]; then
Expand Down Expand Up @@ -113,6 +114,27 @@ jobs:
artifactid: 'ecs-logging-core'
version: ${{ inputs.version }}

create-github-release:
name: "Create GitHub Release"
needs:
- await-maven-central-artifact
runs-on: ubuntu-latest
if: inputs.dry_run == false
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}

- name: Create GitHub Release
env:
GH_TOKEN: ${{ github.token }}
run: |
gh release create ${{ env.RELEASE_VERSION_TAG }} \
--title="Release ${{ env.RELEASE_VERSION }}" \
--generate-notes
post-release:
name: "Bump versions and create PR"
needs:
Expand Down

0 comments on commit 8896198

Please sign in to comment.