{"repo":"yogeshlonkar/wait-for-jobs","free":true,"listed":false,"github":"https://github.com/yogeshlonkar/wait-for-jobs","clone":"git clone https://github.com/yogeshlonkar/wait-for-jobs.git","description":"Wait for the specified jobs in the same run to be complete successfully before proceeding, helpful to prestart the job","language":"TypeScript","stars":26,"topics":["actions","github-actions","wait","prestart","wait-for-jobs","wait-step"],"license":"MIT","category":"workflow-automation","readme_excerpt":"Wait for jobs Currently GitHub Actions doesn't have a native way ( needs: ) to wait for jobs in a step. This action allows to wait for the specified jobs from the same run to be completed successfully before proceeding. Such a behavior is beneficial when dependee job has steps that can run/ finish before the job dependencies are completed or output from them is actually required. [ Without wait-for-jobs ][without-wait-for-jobs-run] In this scenario Job 4 will wait for all job dependencies to be completed before starting even though some of the steps in Job 4 can be started/ comepleted without Job 3 [ With wait-for-jobs ][with-wait-for-jobs-run] In this scenario Job 4 will start once Job 1 and Job 2 are completed. It will complete steps that don't require Job 3 , after thoese steps it will wait for Job 3 to complete. Prestarting Job 4 reduces Total duration (not a Run time or Billable time) This action uses [GitHub API][jobs-for-a-workflow-run-attempt] to fetch latest status of jobs in current run, It also can use JSON artifacts from the same run to set output of this step to be used in next steps Usage Pre-requisites This step requires below permission on its job. This permission is available by default to all the jobs but in case of reusable workflow the permission might be required to set on on both callee and caller job Input Output This action has output named outputs which is JSON string generated by parsing and merging provided JSON artifacts from (jobs in) this run. Ma","default_branch":null,"files":null,"tree":[],"storefront":"/r/yogeshlonkar","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/yogeshlonkar/wait-for-jobs/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}