Skip to content
Open
Show file tree
Hide file tree
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
15 changes: 13 additions & 2 deletions .github/workflows/draft-release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Drafts new mailtrap-java release: bumps the version in pom.xml, regenerates the changelog
# from merged PRs, and opens a release PR against main.
# Drafts new mailtrap-java release: bumps the version in pom.xml and in the install snippets
# of README.md and docs/getting-started.md, regenerates the changelog from merged PRs,
# and opens a release PR against main.
#
name: Draft Java Release
on:
Expand Down Expand Up @@ -64,6 +65,16 @@ jobs:
if: steps.notes.outputs.release_notes != ''
run: mvn versions:set -DnewVersion=${{ steps.bump.outputs.next }} -DgenerateBackupPoms=false

- name: Update version in README.md and docs/getting-started.md install snippets
if: steps.notes.outputs.release_notes != ''
env:
NEXT: ${{ steps.bump.outputs.next }}
run: |
sed -i -E \
-e "s/(io\.mailtrap:mailtrap-java:)[0-9]+\.[0-9]+\.[0-9]+/\1${NEXT}/g" \
-e "/<artifactId>mailtrap-java<\/artifactId>/,/<\/dependency>/ s/(<version>)[0-9]+\.[0-9]+\.[0-9]+(<\/version>)/\1${NEXT}\2/" \
README.md docs/getting-started.md

- name: Prepend new section to CHANGELOG.md
if: steps.notes.outputs.release_notes != ''
uses: railsware/github-actions/prepend-changelog@master
Expand Down
6 changes: 3 additions & 3 deletions docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,20 @@ Maven dependency:
<dependency>
<groupId>io.mailtrap</groupId>
<artifactId>mailtrap-java</artifactId>
<version>1.3.0</version>
<version>1.7.0</version>
</dependency>
```

Gradle Groovy dependency:

```groovy
implementation 'io.mailtrap:mailtrap-java:1.3.0'
implementation 'io.mailtrap:mailtrap-java:1.7.0'
```

Gradle Kotlin DSL dependency:

```kotlin
implementation("io.mailtrap:mailtrap-java:1.3.0")
implementation("io.mailtrap:mailtrap-java:1.7.0")
```

### 2. Authentication
Expand Down
Loading