From ad611840f2332293d2d630fc8dba08f67aef72b4 Mon Sep 17 00:00:00 2001 From: Stefan Haun Date: Fri, 8 Apr 2022 19:27:42 +0200 Subject: [PATCH] Fix release action Problem is https://github.com/heinrichreimer/action-github-changelog-generator/issues/34 --- .github/workflows/release.yml | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 44236e4..73320e6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,24 +7,23 @@ on: jobs: build: - name: "🚀 Release" + name: "Release" runs-on: ubuntu-18.04 steps: - - name: "📥 Check-out" + - name: "Check-out" uses: actions/checkout@v1 - - name: "✏️ Generate release changelog" + - name: "Generate release changelog" id: generate-release-changelog - uses: ./ + uses: heinrichreimer/github-changelog-generator-action@v2.3 with: - token: ${{ secrets.CHANGELOG_TOKEN }} - onlyLastTag: "true" + token: ${{ secrets.GITHUB_TOKEN }} + onlyLastTag: "false" # set to true later (buggy with only one tag) stripHeaders: "true" stripGeneratorNotice: "true" - - name: "🚀 Create GitHub release" - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.CHANGELOG_TOKEN }} + - name: "Create GitHub release" + uses: softprops/action-gh-release@v1 with: tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} - body: ${{ steps.generate-release-changelog.outputs.changelog }} + body: "${{ steps.generate-release-changelog.outputs.changelog }}" + draft: True + token: ${{ secrets.GITHUB_TOKEN }}