Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

infra: Fix indentation for automatic releases #157

Merged
merged 2 commits into from
Oct 25, 2023
Merged
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
8 changes: 4 additions & 4 deletions .github/workflows/auto-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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\[bot\]).*)$'))
IFS=$'\n' authors=($(git log $latest_tag..HEAD --pretty="%ae" --no-merges --perl-regexp --author='^((?!dependabot\[bot\]|renovate\[bot\]).*)$'))

Expand All @@ -58,7 +58,7 @@ jobs:
fi
done <<< "$(echo "${authors[*]}" | uniq)"

# Assemble changelog, by formatting it as "- <commit message> - @<author>", 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 "- <commit message> - @<author>", 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]}
Expand All @@ -80,6 +80,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 }}"
Loading