lexbritvin/Wait for Job, Artifact, File
⏳ Wait for jobs (matrix/regex), artifacts, or files with configurable timeout
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit May 20, 2026
- License
- MIT
Pinned Snippet
uses: lexbritvin/wait-action@273b555279d013a49fbe5c1221dc130149608abd # v2.0.0tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| condition-type | Type of condition to wait for: file, artifact, or job | yes | — |
| file-path | Path to file to wait for (when condition-type is file) | no | — |
| artifact-name | Name of artifact to wait for (when condition-type is artifact) | no | — |
| job-name | Name, prefix, or regex pattern of job(s) to wait for completion (when condition-type is job). Matching modes: 1. Exact match: "deploy-prod" matches only "deploy-prod" 2. Prefix match: "test" matches "test", "test (node-16)", "test-ubuntu", "test_python" 3. Regex pattern: Wrap in forward slashes like "/pattern/" Examples: - "test" → matches all jobs starting with "test" - "build" → matches "build", "build (prod)", "build-deploy" - "/test.*node/" → regex matching jobs like "test-with-node", "testing-node-16" - "/build-\d+/" → regex matching "build-1", "build-42", etc. - "/^(test|build)-/" → regex matching jobs starting with "test-" or "build-" | no | — |
| repository | Repository to check (format: owner/repo, defaults to current repo) | no | ${{ github.repository }} |
| run-id | Run ID to check job status (defaults to current run) | no | ${{ github.run_id }} |
| timeout-seconds | Timeout in seconds | no | 1800 |
| poll-interval-seconds | Polling interval in seconds | no | 10 |
| github-token | GitHub token for API access | no | ${{ github.token }} |
| detached | When true, runs the wait operation in post action phase | no | false |
Outputs
| name | description |
|---|---|
| result | Result of the wait operation: success, timeout, or error |
| message | Descriptive message about the result. For job conditions, includes details about all matching jobs and their status. Examples: - "All 3 job(s) completed successfully: test (node-16), test (node-18), test (node-20)" - "2/3 job(s) not completed: build (windows) (in_progress), build (macos) (queued)" - "No jobs found matching: 'deploy'. Available jobs: test, build, lint" |