I am trying to programatically run a github workflow using the workflow_dispatch event.
There are two workflows on the master branch. Release Matrix and Release Single.
The single workflow looks like this and it working fine.
release-single.yaml
name: Release Single
on:
  workflow_dispatch:
    inputs:
      type:
        description: 'Type'
        required: true
      version:
        description: 'Version'
        required: true
      label:
        description: 'Label'
        required: false
      tag:
        description: 'Tag'
        required: true
jobs:
  [...]
it shows up in the UI and can be triggered by hand:
The matrix workflow has a step that creates the workflow_dispatch event (I've tried different solutions, both following):
release-matrix.yaml
  - uses: actions/github-script@v4
    with:
      github-token: ${{ github.token }}
      debug: true
      script: |
        const workflow = await github.actions.createWorkflowDispatch({
            owner: "owner_name",
            repo: "repo_name",
            workflow_id: "release-single.yaml",
            ref: "${{ github.ref }}",
            inputs: {
              type: "${{ matrix.type }}",
              version: "${{ matrix.version }}",
              label: "${{ matrix.label }}",
              tag: "${{ matrix.tag }}"
            }
        });
        console.log(workflow);
  - uses: benc-uk/workflow-dispatch@v1.1.0
    with:
      workflow: Release Single
      repo: ${{ github.repository }}
      token: ${{ github.token }}
      inputs: '{ "type": "${{ matrix.type }}", "version": "${{ matrix.version }}", "label": "${{ matrix.label }}", "tag": "${{ matrix.tag }}" }'
when the matrix workflow runs it actually executes the steps successfully (both solutions respond with a 204 created just as the documentation states), but no workflow runs show up in the github UI.
Result using actions/github-script and octokit

Result using benc-uk/workflow-dispatch

To finally come to my Question: Am I missing something or doing it wrong? May it be a bug?

 
    

