Internal error when manually running the job

Hi,

I created a public repository dedicated to use GitHub action with all I need for my real CI.

I have some basic jobs (simple script that echo “hello” and “goodbye” to a name), and I want to be able to give a list of names (in real CI it will be a list of supported targets, matrix usage) and select which greeting I want (in real CI it will be sanity and nightly tests).

I think I have a working skeleton, but for some reason, the manual tests are not working at all : I’m facing a “GitHub Actions has encountered an internal error when running your job.” error message.

Any idea ?

Thanks a lot,

The repo : GitHub - gbetous-swir/GHActions-demo: Demo of GitHub actions
The error message : Initial commit · gbetous-swir/GHActions-demo@a573fc5 · GitHub

Hi,

You have been hit by Boolean inputs are not actually booleans · Issue #1483 · actions/runner · GitHub, which ends up assigning string ‘true’ / ‘false’ to a boolean workflow_call parameter => internal server error.

How to fix your workflow?
Cast your workflow_call boolean inputs to actual boolean values.

manual_test:
    name: manual test
    uses: gbetous-swir/GHActions-demo/.github/workflows/jobs.yml@main
    with:
       usernames:  ${{ github.event.inputs.names }}
       hello_job:  ${{ github.event.inputs.hello == 'true' }}
       goodbye_job:  ${{ github.event.inputs.goodbye == 'true' }}

or

manual_test:
    name: manual test
    uses: gbetous-swir/GHActions-demo/.github/workflows/jobs.yml@main
    with:
       usernames:  ${{ github.event.inputs.names }}
       hello_job:  ${{ fromjson(github.event.inputs.hello) }}
       goodbye_job:  ${{ fromjson(github.event.inputs.goodbye) }}

I have no idea how GitHub has blown up their error messages, but I’m shure they had better error messages while reusable workflows were in beta.

I sometimes feel like beeing an alpha tester of github.com free for ghes, since reusable workflows beta was more stable than what we test now.

Thank you very much, this was my issue, it works now :+1: