You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by ho...@apache.org on 2022/04/19 16:02:02 UTC
[solr-docker] branch main updated: Just use the commit title for the PR title
This is an automated email from the ASF dual-hosted git repository.
houston pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/solr-docker.git
The following commit(s) were added to refs/heads/main by this push:
new 08fff2e Just use the commit title for the PR title
08fff2e is described below
commit 08fff2e1249609edec755519292f399be84dc11f
Author: Houston Putman <ho...@apache.org>
AuthorDate: Tue Apr 19 12:01:53 2022 -0400
Just use the commit title for the PR title
---
.github/workflows/pr-for-official-repo.yml | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/pr-for-official-repo.yml b/.github/workflows/pr-for-official-repo.yml
index a17d085..2dae4b0 100644
--- a/.github/workflows/pr-for-official-repo.yml
+++ b/.github/workflows/pr-for-official-repo.yml
@@ -24,6 +24,12 @@ jobs:
with:
repository: docker-solr/official-images
path: official-images
+ - name: check headcommit message
+ id: commit
+ run: |
+ str="$(jq '.head_commit.message' $GITHUB_EVENT_PATH)" # get the head_commit message
+ echo ::set-output name=title::${str%%\\n*} | tr -d '"' # get the title
+ echo ::set-output name=body::${str##*\\n} | tr -d '"'
- name: Install BashBrew
run: |
mkdir -p "${HOME}/.local/bin"
@@ -40,7 +46,7 @@ jobs:
add-paths: library/solr
branch-suffix: short-commit-hash
commit-message: "Apache Solr - ${{ github.event.commits[0].message }}"
- title: "Apache Solr - ${{ github.event.commits[0].message }}"
+ title: "Apache Solr - ${{ steps.commit.outputs.title}}"
body: |
Apache Solr: