-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
At the current stage, the action calls the Create a registration token for a repository so that it can create a secret for the container instance to register at boot.
However, if the API invokation fails (for whatever reason), the jq
tool returns null
as string, an the action keep going on.
As a consequence, it creates a container instance that keeps running indefinitely without never having the possibility to register as Action Runner.
Considering the implementation at
https://api.github.com/repos/${{ github.repository }}/actions/runners/registration-token | jq ".token" -r) |
An effective solution could be adding the -e
flag so that jq
exit with error code in case of missing token
property:
https://api.github.com/repos/${{ github.repository }}/actions/runners/registration-token | jq ".token" -re)
Metadata
Metadata
Assignees
Labels
No labels