Skip to content

feat: add new wait-for-workflow composite action#118

Merged
FidelusAleksander merged 6 commits intomainfrom
action/wait-for-workflow
Mar 9, 2026
Merged

feat: add new wait-for-workflow composite action#118
FidelusAleksander merged 6 commits intomainfrom
action/wait-for-workflow

Conversation

@FidelusAleksander
Copy link
Copy Markdown
Contributor

@FidelusAleksander FidelusAleksander commented Mar 4, 2026

Changes

This pull request introduces a new GitHub Action called "Wait for Workflow Run" that allows one workflow to wait for another workflow run to reach a specified status, without relying on the workflow_run trigger. The changes provide a reusable composite action with configurable inputs and outputs, along with clear documentation for usage.

New GitHub Action: Wait for Workflow Run

  • Action implementation and configuration:
    Added action.yml defining the composite action, its inputs (such as workflow-id, head-sha, status, polling interval, timeout, etc.), outputs (the workflow run's conclusion), and the polling logic using actions/github-script. This enables workflows to wait for another workflow run to reach a target status, with timeout and error handling.

Documentation

  • Comprehensive README:
    Added README.md with a description of the action, input/output details, and a usage example, making it easy for users to understand and integrate the action into their workflows.

Example

I'm using this in reusable-workflows exercise

image

Checklist

  • I have added or updated appropriate labels to this PR
  • I have tested my changes
  • I have updated the documentation if needed

Copilot AI review requested due to automatic review settings March 4, 2026 11:43
@FidelusAleksander FidelusAleksander added the bump-minor Corresponds to minor SemVer release label Mar 4, 2026
@github-actions github-actions bot added the actions Changes to GitHub Actions shared by this repository label Mar 4, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new reusable composite GitHub Action (wait-for-workflow) that polls the GitHub Actions API until a workflow run reaches a target status, plus documentation for using it in workflows.

Changes:

  • Added actions/wait-for-workflow/action.yml implementing polling, timeout handling, and outputting the run conclusion.
  • Added actions/wait-for-workflow/README.md documenting inputs/outputs and providing a usage example.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 6 comments.

File Description
actions/wait-for-workflow/action.yml New composite action that polls actions.listWorkflowRuns until the run reaches the requested status, then outputs the conclusion (or timeout).
actions/wait-for-workflow/README.md Usage docs for the new action, including input/output reference and sample workflow snippet.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@FidelusAleksander FidelusAleksander merged commit 591d7ca into main Mar 9, 2026
6 checks passed
@FidelusAleksander FidelusAleksander deleted the action/wait-for-workflow branch March 9, 2026 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

actions Changes to GitHub Actions shared by this repository bump-minor Corresponds to minor SemVer release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants