{"id":31934790,"url":"https://github.com/lexbritvin/wait-action","last_synced_at":"2025-10-14T06:53:52.908Z","repository":{"id":297120391,"uuid":"995068990","full_name":"lexbritvin/wait-action","owner":"lexbritvin","description":"A GitHub Action that waits for jobs (matrix support + regex patterns), artifacts, or files to be ready with configurable timeout and polling intervals. Supports detached execution and flexible job matching patterns.","archived":false,"fork":false,"pushed_at":"2025-06-23T15:47:25.000Z","size":308,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-23T16:25:59.223Z","etag":null,"topics":["github-action","job-matrix","pattern-matching","timeout","wait"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lexbritvin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-02T23:25:10.000Z","updated_at":"2025-06-23T15:34:39.000Z","dependencies_parsed_at":"2025-06-04T07:15:10.307Z","dependency_job_id":"a5c2f961-3d31-441e-bcff-ffdf58a323ca","html_url":"https://github.com/lexbritvin/wait-action","commit_stats":null,"previous_names":["lexbritvin/wait-for-action"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/lexbritvin/wait-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lexbritvin%2Fwait-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lexbritvin%2Fwait-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lexbritvin%2Fwait-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lexbritvin%2Fwait-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lexbritvin","download_url":"https://codeload.github.com/lexbritvin/wait-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lexbritvin%2Fwait-action/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279018138,"owners_count":26086285,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["github-action","job-matrix","pattern-matching","timeout","wait"],"created_at":"2025-10-14T06:53:51.323Z","updated_at":"2025-10-14T06:53:52.892Z","avatar_url":"https://github.com/lexbritvin.png","language":"JavaScript","readme":"# ⏳ Wait for Job, Artifact, File Action\n\n\u003e 🚀 Wait for jobs (matrix support + regex patterns), artifacts, or files with intelligent matching and configurable timeouts.\n\n## ✨ Features\n\n- 📁 **File Watching** - Wait for files to appear on disk\n- 📦 **Artifact Monitoring** - Track GitHub artifacts completion\n- 🔄 **Job Synchronization** - Coordinate multiple workflow jobs with matrix support\n- 🎯 **Smart Job Matching** - Flexible job name matching (exact, prefix, regex patterns)\n- 🏗️ **Matrix Job Support** - Handle complex job matrices seamlessly\n- 🪄 **Regex Patterns** - Advanced pattern matching for dynamic job names\n- ⏰ **Smart Timeouts** - Configurable timeouts with polling\n- 📊 **Rich Feedback** - Detailed status messages with job completion details\n\n## 🚀 Quick Start\n\n\n### 🔄 Wait for Jobs\n\n```yaml\n# 🧪 Wait for all test jobs\n- name: ⚡ Wait for tests to complete\n  uses: lexbritvin/wait-action@v1\n  with:\n    condition-type: 'job'\n    job-name: 'test'\n    timeout-seconds: 900\n\n# 🏗️ Wait with regex pattern\n- name: 🎨 Wait for build matrix\n  uses: lexbritvin/wait-action@v1\n  with:\n    condition-type: 'job'\n    job-name: '/build-\\d+/'\n    timeout-seconds: 1200\n```\n\n### 📦 Wait for Artifact\n\n```yaml\n- name: 🎯 Wait for test results\n  uses: lexbritvin/wait-action@v1\n  with:\n    condition-type: 'artifact'\n    artifact-name: 'test-coverage'\n    timeout-seconds: 600\n```\n\n### 📁 Wait for File\n\n```yaml\n- name: 📄 Wait for build output\n  uses: lexbritvin/wait-action@v1\n  with:\n    condition-type: 'file'\n    file-path: './dist/bundle.js'\n    timeout-seconds: 300\n```\n\n## ⚙️ Configuration\n\n| Input                   | Description                               | Required | Default | Example             |\n|-------------------------|-------------------------------------------|:--------:|---------|---------------------|\n| `condition-type`        | 🎯 **Type**: `file`, `artifact`, or `job` |   Yes    | -       | `job`               |\n| `file-path`             | 📁 File path to monitor                   |    No    | -       | `./dist/app.js`     |\n| `artifact-name`         | 📦 Artifact to track                      |    No    | -       | `build-assets`      |\n| `job-name`              | 🔄 Job name or pattern                    |    No    | -       | `test` or `/ci-.*/` |\n| `timeout-seconds`       | ⏰ Max wait time in seconds                |    No    | `1800`  | `900`               |\n| `poll-interval-seconds` | 🔄 Check frequency                        |    No    | `10`    | `5`                 |\n\n## 🎯 Job Pattern Magic\n\n| Pattern Type  | Example        | Matches                                 |\n|---------------|----------------|-----------------------------------------|\n| 🎯 **Exact**  | `deploy-prod`  | Only \"deploy-prod\"                      |\n| 🔍 **Prefix** | `test`         | \"test\", \"test (node-16)\", \"test-ubuntu\" |\n| 🪄 **Regex**  | `/test.*node/` | \"test-with-node\", \"testing-node-16\"     |\n\n### 🌟 Pattern Examples\n\n```yaml\njob-name: 'test'           # 🔍 All test jobs\njob-name: '/build-\\d+/'    # 🔢 build-1, build-42\njob-name: '/^(ci|test)-/'  # 🎭 Jobs starting with ci- or test-\n```\n\n## 📤 Outputs\n\n- 🎯 **`result`**: `success` | `timeout` | `error`\n- 💬 **`message`**: Detailed status with job information\n\n### 📝 Example Messages\n\n```\n✅ All 3 job(s) completed: test (node-16), test (node-18), test (node-20)\n⏳ 2/3 job(s) still running: build (windows), build (macos)\n❌ No jobs found matching 'deploy'. Available: test, build, lint\n```\n\n## 🏗️ Real-World Example\n\n```yaml\nname: 🚀 Smart Deploy Pipeline\non: [ push ]\n\njobs:\n  test:\n    name: Test Suite\n    runs-on: ubuntu-latest\n    strategy:\n      matrix:\n        node: [ 16, 18, 20 ]\n        os: [ ubuntu-latest, windows-latest ]\n    steps:\n      - run: npm test\n\n  build:\n    name: Build Assets\n    runs-on: ubuntu-latest\n    steps:\n      - run: npm run build\n\n  deploy:\n    name: 🚀 Deploy to Production\n    runs-on: ubuntu-latest\n    steps:\n      - name: ⏳ Wait for all tests \u0026 builds\n        uses: lexbritvin/wait-action@v1\n        with:\n          condition-type: 'job'\n          job-name: '/(Test Suite|Build Assets)/'\n          timeout-seconds: 900\n\n      - name: 🚀 Deploy application\n        run: echo \"🎉 Deploying to production!\"\n```\n\n## 🎨 Why Choose This Action?\n\n- ✨ **Zero Configuration** - Works out of the box\n- 🔧 **Highly Flexible** - Multiple condition types\n- ⚡ **Performance Focused** - Efficient polling\n- 🛡️ **Error Resilient** - Graceful timeout handling\n- 📊 **Rich Feedback** - Detailed status messages\n\n## 📄 License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n---\n\n**⭐ Star this repo if you find it useful!**\n\nMade with ❤️ for the GitHub Actions community\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flexbritvin%2Fwait-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flexbritvin%2Fwait-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flexbritvin%2Fwait-action/lists"}