medlypharmacy/Workflow Dispatch and wait
Trigger and chain GitHub Actions workflows with workflow_dispatch events and wait for result
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stalelast commit Apr 19, 2022
- License
- None
- Runtime
- Deprecated runtime
Pinned Snippet
uses: medlypharmacy/workflow-dispatch-trigger-and-wait@20176e06aafdf1e850653f04af5544670d0447dd # v1.0.6tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| workflow | Name or ID of workflow to run | yes | — |
| token | GitHub token with repo write access, can NOT use secrets.GITHUB_TOKEN, see readme | yes | — |
| repo-name | Repository Name which invokes another workflow. Always set its value to be github.repository | yes | — |
| actor-name | Name of the user who want to trigger workflow. Always set its value to be github.actor | yes | — |
| ref-name | The pull request that triggered this workflow. Always set its value to be github.ref | yes | — |
| head-ref-name | The name of the head branch. Always set its value to be github.head_ref | yes | — |
| base-ref-name | The name of the base branch. Always set its value to be github.base_ref | yes | — |
| inputs | Inputs to pass to the workflow, must be a JSON string. All values must be strings (even if used as boolean or number) | no | — |
| ref | The reference of the workflow run. The reference can be a branch, tag, or a commit SHA | no | — |
| repo | Repo owner & name, slash separated, only set if invoking a workflow in a different repo | no | — |
| display-workflow-run-url | Get the URL of the triggered workflow and display it in logs (useful to follow the progress of the triggered workflow) | no | true |
| display-workflow-run-url-interval | The time to wait (+unit) between two polls to get the URL of the workflow run | no | 1m |
| display-workflow-run-url-timeout | Maximum amount of time (+unit) to wait for the URL of the workflow run. If the timeout is reached, it is just ignored | no | 10m |
| wait-for-completion | Block until the triggered workflow has finished | no | true |
| wait-for-completion-timeout | Maximum amount of time (+unit) to wait to mark workflow as timed out | no | 1h |
| wait-for-completion-interval | Time to wait (+unit) between two polls to get run status | no | 1m |
Outputs
no outputs