You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Enrich release commit message
Describe the solution you'd like
- name: Get the current version from setup.py
id: current_version
run: |
CURRENT_VERSION=$(python -c "import setup; print(setup.__version__)")
echo "current_version=$CURRENT_VERSION" >> $GITHUB_ENV
- name: Get the previous version from git tags
id: previous_version
run: |
PREVIOUS_VERSION=$(git tag --sort=-creatordate | grep -E 'v[0-9]+\.[0-9]+\.[0-9]+' | sed -n '2p')
echo "previous_version=$PREVIOUS_VERSION" >> $GITHUB_ENV
- name: Get the list of commits between the previous and current version
id: commit_list
run: |
if [ -n "$PREVIOUS_VERSION" ]; then
git log $PREVIOUS_VERSION..HEAD --pretty=format:"%h %s" > commit_list.txt
else
echo "No previous version found, listing all commits" > commit_list.txt
git log --pretty=format:"%h %s" >> commit_list.txt
fi
echo "commits=$(cat commit_list.txt)" >> $GITHUB_ENV
- name: Enrich release message with commit list
id: enrich_release_message
run: |
COMMIT_LIST=$(cat commit_list.txt)
RELEASE_MESSAGE=$(echo -e "## Release Notes\n\n### Commits:\n$COMMIT_LIST")
echo "release_message=$RELEASE_MESSAGE" >> $GITHUB_ENV
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Enrich release commit message
Describe the solution you'd like
The text was updated successfully, but these errors were encountered: