Skip to content

Commit

Permalink
Fix workflow dependencies (#375)
Browse files Browse the repository at this point in the history
* make e2e reuse build image workflow

* remove nounset

* fix script path

* fix draft_release id

* fix create_changelog.sh

* fix create_changelog.sh

* Trigger job

* fix create_changelog.sh
  • Loading branch information
ruanxin authored Sep 10, 2024
1 parent a2a8542 commit d468097
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/scripts/release/create_changelog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ CHANGELOG_FILE="CHANGELOG.md"

echo "## What has changed" >> $CHANGELOG_FILE

git log "$LAST_RELEASE_TAG..$CURRENT_RELEASE_TAG" --pretty=tformat:"%h" --reverse | while read -r commit
git log "$LAST_RELEASE_TAG"..HEAD --pretty=tformat:"%h" --reverse | while read -r commit
do
COMMIT_AUTHOR=$(curl -H "$GITHUB_AUTH_HEADER" -sS "$GITHUB_URL"/commits/"$commit" | jq -r '.author.login')
git show -s "$commit" --format="* %s by @$COMMIT_AUTHOR" >> $CHANGELOG_FILE
if [ "${COMMIT_AUTHOR}" != "kyma-bot" ]; then
git show -s "${commit}" --format="* %s by @${COMMIT_AUTHOR}" >> ${CHANGELOG_FILE}
fi
done

{
Expand Down

0 comments on commit d468097

Please sign in to comment.