Skip to content

Commit

Permalink
Merge pull request #110 from Banno/auto-changelog
Browse files Browse the repository at this point in the history
Use new automatic release notes generator
  • Loading branch information
joshschriever authored Oct 7, 2021
2 parents 79c0382 + 2c513ee commit b5e0203
Showing 1 changed file with 7 additions and 27 deletions.
34 changes: 7 additions & 27 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,35 +14,24 @@ jobs:
with:
token: ${{ secrets.BANNO_AUTOBOT_GITHUB_TOKEN }}

- id: get_previous_release
uses: thebritican/[email protected]

- run: |
PREVIOUS_TAG=${{ steps.get_previous_release.outputs.tag_name }}
echo "previousTag=$PREVIOUS_TAG" >> $GITHUB_ENV
- id: get_new_version
- id: current_version
uses: christian-draeger/[email protected]
with:
path: gordon-plugin/gradle.properties
property: version

- run: |
NEW_TAG=${{ steps.get_new_version.outputs.value }}
echo "newTag=$NEW_TAG" >> $GITHUB_ENV
- name: Create Tag
uses: simpleactions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag: ${{ env.newTag }}
message: ${{ env.newTag }}
tag: ${{ steps.current_version.outputs.value }}
message: ${{ steps.current_version.outputs.value }}

- id: next_version
uses: jessicalostinspace/[email protected]
with:
semantic-version: ${{ env.newTag }}
semantic-version: ${{ steps.current_version.outputs.value }}
version-type: PATCH

- name: Bump Version
Expand All @@ -60,21 +49,12 @@ jobs:
add: gordon-plugin/gradle.properties
message: Bump version to ${{steps.next_version.outputs.bumped-semantic-version}}

- name: Generate Changelog
id: generate_changelog
uses: nblagoev/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
base-ref: ${{ env.previousTag }}
head-ref: HEAD

- name: Draft Release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.newTag }}
release_name: ${{ env.newTag }}
body: ${{steps.generate_changelog.outputs.result}}
tag_name: ${{ steps.current_version.outputs.value }}
release_name: ${{ steps.current_version.outputs.value }}
body: <!-- Generate release notes by using the "Auto-generate release notes" button above -->
draft: true

0 comments on commit b5e0203

Please sign in to comment.