GitHub Action on release trigger - 500 error - There was an issue inferring inputs to the action

I get the following error in every workflow run of my ‘on release’ GitHub Action.

There was an issue inferring inputs to the action.
Exception: {
  "error": "500/inferInput Error",
  "from": "inferInput",
  "message": "Received event from release, but received no inputs. {event_name:release, pr: NaN, before:false, after:false}",
  "payload": ""
}

My workflow file looks like this:

name: Deploy on release published

on:
  release:
    types:
    - published

jobs:
  deploy_prod:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        package: [identity, db, api, ui]
    steps:
    - name: Checkout
      uses: actions/checkout@v2

Hi @brettstack ,

How did you create release event? Could you please share the workflow run logs here? 

I created a release in Github Web UI: https://github.com/{org}/{repo}/releases and using Github Release API,  both methods worked fine. My workflow on: release was triggered as expected. 

1 Like

I have tried two ways:

  1. Created automatically via a different workflow

  2. Created manually via the UI

How do I get the workflow run logs? The logs I provided are the only logs I see, aside from this which doesn’t seem useful:

.github#L1
The job was canceled because "ui" failed.

Could you please share your affected repo link here? Or you could share a screenshot of the workflow run page:  

Where did you get this error message? 

There was an issue inferring inputs to the action.
Exception: {
  "error": "500/inferInput Error",
  "from": "inferInput",
  "message": "Received event from release, but received no inputs. {event_name:release, pr: NaN, before:false, after:false}",
  "payload": ""
}