diff --git a/.github/workflows/sync.yaml b/.github/workflows/sync.yaml index 34d1b80..ae71fa3 100644 --- a/.github/workflows/sync.yaml +++ b/.github/workflows/sync.yaml @@ -294,7 +294,7 @@ jobs: latest_commit_hash=$(git rev-parse HEAD) latest_commit_url="https://github.com/$GITHUB_REPOSITORY/commit/$latest_commit_hash" latest_commit_message=$(git log -1 --pretty=%s) - modified_message=$(echo "$message" | sed -E "s/#([0-9]+)/${repo_name}#\1/g") + modified_message=$(echo "$latest_commit_message" | sed -E "s/#([0-9]+)/${repo_name}#\1/g") latest_commit_entry="- $modified_message - ([$(git rev-parse --short HEAD)]($latest_commit_url))" cd target-repo