From 88efbb5e7eb952f722caa792e2eb49c618c1a113 Mon Sep 17 00:00:00 2001 From: Emanuel Palm Date: Fri, 5 Jan 2024 18:39:00 +0100 Subject: [PATCH] more default values, less git commands --- .github/workflows/PublishReleaseAndModule.yml | 21 ++++++++----------- 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/.github/workflows/PublishReleaseAndModule.yml b/.github/workflows/PublishReleaseAndModule.yml index 5644642..732dcbe 100644 --- a/.github/workflows/PublishReleaseAndModule.yml +++ b/.github/workflows/PublishReleaseAndModule.yml @@ -20,6 +20,12 @@ jobs: ref: main fetch-depth: 2 + - name: Configure Git Actor + run: | + # Configure git with github-actions bot to make commits more pretty + git config user.name "github-actions[bot]" + git config user.email "41898282+github-actions[bot]@users.noreply.github.com" + - name: Get changelog id: get-changelog uses: release-flow/keep-a-changelog-action@v2 @@ -27,28 +33,19 @@ jobs: command: query version: unreleased - - uses: meeDamian/github-release@2.0 + - name: Create Release + uses: meeDamian/github-release@2.0 with: token: ${{ secrets.GITHUB_TOKEN }} name: ${{ github.ref_name }} draft: true body: ${{ steps.get-changelog.outputs.release-notes }} - - name: Update changelog + - name: Update Changelog uses: thomaseizinger/keep-a-changelog-new-release@v1 with: tag: ${{ github.ref }} - - name: Push changelog - run: | - # Configure git with github-actions bot to make commits more pretty - git config user.name "github-actions[bot]" - git config user.email "41898282+github-actions[bot]@users.noreply.github.com" - - git checkout -b changelog/${{ github.ref_name }} - git add CHANGELOG.md - git commit -m "docs: update changelog for ${{ github.ref_name }}" - - name: Create Pull Request id: create-pull-request uses: peter-evans/create-pull-request@v5