From d9751bf17ab28305f0c3241a456975652a209183 Mon Sep 17 00:00:00 2001 From: Antoine Lethimonnier <43064022+WarningImHack3r@users.noreply.github.com> Date: Sun, 15 Oct 2023 20:48:38 +0200 Subject: [PATCH] Fix indentation for automatic releases --- .github/workflows/auto-release.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index 31168361..8c989d96 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -31,7 +31,7 @@ jobs: echo current_version=$(echo $latest_tag | sed "s/v//") >> $GITHUB_OUTPUT echo version=$(node -pe "require('./package.json').version") >> $GITHUB_OUTPUT - # Get all changes & authors of commits since last release, excluding merge commits and commits from dependabot or renovate + # Get all changes & authors of commits since the last release, excluding merge commits and commits from dependabot or renovate IFS=$'\n' changes=($(git log $latest_tag..HEAD --pretty="%s" --no-merges --perl-regexp --author='^((?!dependabot\[bot\]|renovate).*)$')) IFS=$'\n' authors=($(git log $latest_tag..HEAD --pretty="%ae" --no-merges --perl-regexp --author='^((?!dependabot\[bot\]|renovate).*)$')) @@ -51,7 +51,7 @@ jobs: fi done <<< "$(echo "${authors[*]}" | uniq)" - # Assemble changelog, by formatting it as "- - @", where author is picked from the index of the current change, and is passed through the author_map to get the GitHub username + # Assemble changelog, by formatting it as "- - @", where 'author' is picked from the index of the current change, and is passed through the 'author_map' to get the GitHub username changelog=() for i in "${!changes[@]}"; do author=${authors[$i]} @@ -73,6 +73,6 @@ jobs: gh release create v${{ steps.version-check.outputs.version }} \ --title ${{ steps.version-check.outputs.version }} \ --notes "## What's Changed - ${{ steps.version-check.outputs.changelog }} + ${{ steps.version-check.outputs.changelog }} - **Full Changelog:** https://github.com/${{ github.repository }}/compare/v${{ steps.version-check.outputs.current_version }}...v${{ steps.version-check.outputs.version }}" + **Full Changelog:** https://github.com/${{ github.repository }}/compare/v${{ steps.version-check.outputs.current_version }}...v${{ steps.version-check.outputs.version }}"