Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: automate release note #247

Merged
merged 1 commit into from
Mar 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally, cli/cli#8887 could help with dry-run so this step could run regardless... though it might take a bit of time until agreed or implemented.

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
Loading