lexbritvin/Wait for Job, Artifact, File

⏳ Wait for jobs (matrix/regex), artifacts, or files with configurable timeout

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit May 20, 2026
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: lexbritvin/wait-action@273b555279d013a49fbe5c1221dc130149608abd # v2.0.0

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
condition-typeType of condition to wait for: file, artifact, or jobyes
file-pathPath to file to wait for (when condition-type is file)no
artifact-nameName of artifact to wait for (when condition-type is artifact)no
job-nameName, 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
repositoryRepository to check (format: owner/repo, defaults to current repo)no${{ github.repository }}
run-idRun ID to check job status (defaults to current run)no${{ github.run_id }}
timeout-secondsTimeout in secondsno1800
poll-interval-secondsPolling interval in secondsno10
github-tokenGitHub token for API accessno${{ github.token }}
detachedWhen true, runs the wait operation in post action phasenofalse
namedescription
resultResult of the wait operation: success, timeout, or error
messageDescriptive 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"