Skip to content

NathanFirmo/wait-for-other-job

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

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