Skip to content

Trigger a workflow in another (or same) repository and wait for the job to finish.

License

Notifications You must be signed in to change notification settings

jbuettnerbild/trigger-workflow-and-wait

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trigger Workflow and Wait

Github Action for trigger a workflow from another workflow. The action then waits for a response.

When would you use it?

When deploying an app you may need to deploy additional services, this Github Action helps with that.

Arguments

Argument Name Required Default Description
owner True N/A The owner of the repository where the workflow is contained.
repo True N/A The repository where the workflow is contained.
github_token True N/A The Github access token with access to the repository. Its recommended you put it under secrets.
wait_interval False 10 The number of seconds delay between checking for result of run.
event_type False ping The event type that is trigger your workflow on the secondary repository.
workflow_file_name True N/A The reference point. For example, you could use main.yml.
client_payload False {} JSON payload with extra information about the webhook event that your action or worklow may use.

Example

- uses: convictional/trigger-workflow-and-wait
  with:
    owner: keithconvictional
    repo: myrepo
    github_token: ${{ secrets.GITHUB_PERSONAL_ACCESS_TOKEN }}

About

Trigger a workflow in another (or same) repository and wait for the job to finish.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 94.6%
  • Dockerfile 5.4%