Skip to content
clock

GitHub Action

Run Workflow and Yield

release Latest version

Run Workflow and Yield

clock

Run Workflow and Yield

Runs a workflow in a repository and waits until it finishes

Installation

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

              

- name: Run Workflow and Yield

uses: DevinPower/run-workflow-and-yield@release

Learn more about this action in DevinPower/run-workflow-and-yield

Choose a version

Overview

This action will run a workflow in a remote repostiory and then poll to see if that workflow has finished running.

Parameter Description
owner Owner of the target repository
repostiory Name of the repository
branch Branch or tag name to run the workflow for
access-token GitHub personal access token with read/write for actions
timeout How long before the action will try before giving up
poll-interval How often to check the status of the workflow
enable-logging Whether or not to display debug information in the logs

Example usage

    - name: Sleep
      uses: DevinPower/run-workflow-and-yield@main
      with:
        owner: 'DevinPower'
        repostiory: 'run-workflow-and-yield'
        branch: 'main'
        access-token: 'my super secret key!'
        timeout: 30 #minutes
        poll-interval: 5 #seconds
        enable-logging: true