I am working on converting a Jenkins Pipeline into a Github Actions workflow and need a way of storing the commit author as an environment variable for later use in node.js code. 

I have read the documentation and this seems to be the only way I can get it working: 

```
name: Feature Branch PR

on:
  pull_request:
    types: [opened, edited, synchronize]
  push:
    branches: 
    - '**'

```

Then in the Env section:

```
env:
   AUTHOR: ${{ github.event.pusher.name }}

```

The problem is this only works for Push triggers. So if i remove the on: push section from top of yml workflow (so it only triggers on PRs) the AUTHOR info becomes empty.

I cannot find a way to get it for commits. Does anyone know of of a way? We do not want this workflow to trigger on pushes. 

I also tried 

```
        AUTHOR: $(jq '.commits.committer.name' $GITHUB_EVENT_PATH)

```

I think this was syntactically incorrect though.