Skip to content
clock

GitHub Action

Wait for other job

v1.1.1 Latest version

Wait for other job

clock

Wait for other job

Simple action to wait for a specific job

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Wait for other job

uses: NathanFirmo/[email protected]

Learn more about this action in NathanFirmo/wait-for-other-job

Choose a version

Wait for other job

Open Source Love version PRs Welcome test

This action provides a simple way to wait for a specific job (in current workflow) to complete.

Usage

- name: Wait 
  uses: NathanFirmo/[email protected]
  with:
    token: ${{ secrets.GITHUB_TOKEN }}
    job: 'job-name'

OBS.: If you get an error in private repos, use a Personal Access Token instead.

Required Inputs

The following inputs are required to use this action:

Input Description
token Your GitHub token. See more in GitHub Docs.
job Name of the job you wanna wait for.

Optional Inputs

These are the optional inputs for this action:

Input Description
failOnJobError If true, the action will fail case an error happen in the job you are waiting for.

Why use this action

This action can be useful you to decrease CI execution time helping to parallelize jobs like build, test and deployment.

Now