From c930d34a311f0ef35c945cfe4043c74a32410511 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Tue, 20 Sep 2022 07:41:36 +0200 Subject: [PATCH] ci: update generic workflows (#148) --- .github/workflows/automerge-for-humans-merging.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/automerge-for-humans-merging.yml b/.github/workflows/automerge-for-humans-merging.yml index 1d9ed7d..4bce61d 100644 --- a/.github/workflows/automerge-for-humans-merging.yml +++ b/.github/workflows/automerge-for-humans-merging.yml @@ -34,8 +34,8 @@ jobs: # 6. Builds the `Co-authored-by: ...` lines with actual info. # 7. Transforms the array into plain text. Thanks to this, the actual stdout of this step can be used by the next Workflow step (wich is basically the automerge). cmd: | - curl -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ secrets.GH_TOKEN }}" "${{github.event.pull_request._links.commits.href}}?per_page=100" - | jq -r '[.[] + curl -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ secrets.GH_TOKEN }}" "${{github.event.pull_request._links.commits.href}}?per_page=100" | + jq -r '[.[] | {name: .commit.author.name, email: .commit.author.email, login: .author.login}] | map(select(.login != "${{github.event.pull_request.user.login}}")) | unique