Files
wait-for-workflow-action/action.yml
Kamil Chodoła 8396cec88c Create action.yml
2023-04-26 16:49:04 +02:00

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 }}