diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ae6f400..a0821af 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -59,12 +59,7 @@ jobs: COMMITS="" @@ -75,11 +70,7 @@ jobs: # Iterace přes všechny commity od posledního tagu while read -r commit_hash; do COMMIT_MSG=$(git log -n 1 --pretty=format:"%s" "$commit_hash") - AUTHOR_EMAIL=$(git log -n 1 --pretty=format:"%ae" "$commit_hash") - - # Získání GitHub username z API - AUTHOR_USERNAME=$(gh api "/search/users?q=$AUTHOR_EMAIL+in:email" --jq ".items[0].login" || echo "UnknownUser") - AUTHOR=$AUTHOR_USERNAME + AUTHOR=$(gh api "/repos/${{ github.repository }}/commits/$commit_hash" --jq '.author.login') # Kontrola, zda jde o fixup commit if [[ "$COMMIT_MSG" == fixup!* ]]; then