mirror of
https://github.com/kamilchodola/wait-for-workflow-action.git
synced 2026-04-29 15:47:40 -05:00
29 lines
870 B
YAML
29 lines
870 B
YAML
name: 'Wait for Workflow Action'
|
|
description: 'Waits for a specified workflow to complete before proceeding'
|
|
inputs:
|
|
GITHUB_TOKEN:
|
|
description: 'GitHub token to access the repository'
|
|
required: true
|
|
workflow_id:
|
|
description: 'ID of the workflow to wait for'
|
|
required: true
|
|
max_wait_minutes:
|
|
description: 'Maximum time script will wait to workflow run to be found in minutes'
|
|
required: true
|
|
default: '5'
|
|
org_name:
|
|
description: 'GitHub organization name'
|
|
required: true
|
|
repo_name:
|
|
description: 'GitHub repository name'
|
|
required: true
|
|
runs:
|
|
using: 'composite'
|
|
steps:
|
|
- run: ${{ github.action_path }}/scripts/wait-for-workflow.sh
|
|
shell: bash
|
|
env:
|
|
GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }}
|
|
WORKFLOW_ID: ${{ inputs.workflow_id }}
|
|
MAX_WAIT_MINUTES: ${{ inputs.max_wait_minutes }}
|