ℹ️ Check the ci workflow in this repo to see a live example on how to use this action in your own workflow
-
targetRepository
: Full name (owner/repo-name
) of the repository that will receive therepository_dispatch
event.- required:
false
- default:
${{ github.repository }}
(current repository running the workflow)
- required:
-
eventType
: Custom event type expected by the receiving repository- required:
true
- example:
'do-something-awesome'
- required:
-
token
: A GitHub Personal Access Token (PAT) (more info)- required:
true
- required:
-
payloadType
: Type of payload provided. Types:string
,path
,url
- required:
false
- default:
'string'
- required:
-
payload
: Stringified JSON payload. Expected when payloadType is not provided or provided as"string"
- required:
false
- default:
'{}'
- example:
'{"customField": "some value", "anotherField": "another value"}'
- example:
- required:
-
payloadPath
: Path to file with JSON payload. Expected when payloadType is provided as"path"
- required:
false
- required:
-
payloadUrl
: URL to JSON payload. Expected when payloadType is provided as"url"
- required:
false
- required:
ℹ️ If you are targeting:
- Public repository: The PAT only needs
public_repo
scope - Private repository: The PAT needs
repo
scope and its owner needswrite
access in the target repository
To enable step debug logging, set the following secret in the repository that's running the workflow:
- Secret name:
ACTIONS_STEP_DEBUG
- value:
true