{"id":45980444,"url":"https://github.com/cloudbeds/trigger-workflow-and-wait","last_synced_at":"2026-02-28T17:33:58.679Z","repository":{"id":138927126,"uuid":"560371123","full_name":"cloudbeds/trigger-workflow-and-wait","owner":"cloudbeds","description":null,"archived":false,"fork":false,"pushed_at":"2026-02-04T13:21:22.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2026-02-05T00:48:10.788Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cloudbeds.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-11-01T10:53:36.000Z","updated_at":"2026-02-04T13:21:25.000Z","dependencies_parsed_at":"2024-01-15T20:28:13.633Z","dependency_job_id":"12de52c3-6e6d-4697-b2bc-89aa0203e09e","html_url":"https://github.com/cloudbeds/trigger-workflow-and-wait","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/cloudbeds/trigger-workflow-and-wait","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudbeds%2Ftrigger-workflow-and-wait","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudbeds%2Ftrigger-workflow-and-wait/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudbeds%2Ftrigger-workflow-and-wait/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudbeds%2Ftrigger-workflow-and-wait/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudbeds","download_url":"https://codeload.github.com/cloudbeds/trigger-workflow-and-wait/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudbeds%2Ftrigger-workflow-and-wait/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29944768,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-28T13:49:17.081Z","status":"ssl_error","status_checked_at":"2026-02-28T13:48:50.396Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-02-28T17:33:58.592Z","updated_at":"2026-02-28T17:33:58.658Z","avatar_url":"https://github.com/cloudbeds.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Trigger Workflow and Wait\n\nGithub Action for trigger a workflow from another workflow. The action then waits for a response.\n\n**When would you use it?**\n\nWhen deploying an app you may need to deploy additional services, this Github Action helps with that.\n\n\n## Arguments\n\n| Argument Name            | Required   | Default     | Description           |\n| ---------------------    | ---------- | ----------- | --------------------- |\n| `owner`                  | True       | N/A         | The owner of the repository where the workflow is contained. |\n| `repo`                   | True       | N/A         | The repository where the workflow is contained. |\n| `github_token`           | True       | N/A         | The Github access token with access to the repository. Its recommended you put it under secrets. |\n| `workflow_file_name`     | True       | N/A         | The reference point. For example, you could use main.yml. |\n| `github_user`            | False      | N/A         | The name of the github user whose access token is being used to trigger the workflow. |\n| `ref`                    | False      | main        | The reference of the workflow run. The reference can be a branch, tag, or a commit SHA. |\n| `wait_interval`          | False      | 10          | The number of seconds delay between checking for result of run. |\n| `client_payload`         | False      | `{}`        | Payload to pass to the workflow, must be a JSON string |\n| `propagate_failure`      | False      | `true`      | Fail current job if downstream job fails. |\n| `trigger_workflow`       | False      | `true`      | Trigger the specified workflow. |\n| `wait_workflow`          | False      | `true`      | Wait for workflow to finish. |\n\n\n## Example\n\n### Simple\n\n```yaml\n- uses: cloudbeds/trigger-workflow-and-wait@v1.6.2\n  with:\n    owner: cloudbeds\n    repo: myrepo\n    github_token: ${{ secrets.CB_CI_WORKFLOW_TOKEN }}\n```\n\n### All Options\n\n```yaml\n- uses: cloudbeds/trigger-workflow-and-wait@v1.6.2\n  with:\n    owner: cloudbeds\n    repo: myrepo\n    github_token: ${{ secrets.CB_CI_WORKFLOW_TOKEN }}\n    github_user: github-user\n    workflow_file_name: main.yml\n    ref: release-branch\n    wait_interval: 10\n    client_payload: '{}'\n    propagate_failure: false\n    trigger_workflow: true\n    wait_workflow: true\n```\n\n\n## Testing\n\nYou can test out the action locally by cloning the repository to your computer. You can run:\n\n```shell\nINPUT_OWNER=\"cloudbeds\" \\\nINPUT_REPO=\"myrepo\" \\\nINPUT_GITHUB_TOKEN=\"\u003cREDACTED\u003e\" \\\nINPUT_GITHUB_USER=\"github-user\" \\\nINPUT_WORKFLOW_FILE_NAME=\"main.yml\" \\\nINPUT_REF=\"release-branch\" \\\nINPUT_WAIT_INTERVAL=10 \\\nINPUT_CLIENT_PAYLOAD='{}' \\\nINPUT_PROPAGATE_FAILURE=false \\\nINPUT_TRIGGER_WORKFLOW=true \\\nINPUT_WAIT_WORKFLOW=true \\\nbusybox sh entrypoint.sh\n```\n\nYou will have to create a Github Personal access token. You can create a test workflow to be executed. In a repository, add a new `main.yml` to `.github/workflows/`. The workflow will be:\n\n```shell\nname: Main\non:\n  workflow_dispatch\njobs:\n  build:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@master\n      - name: Pause for 25 seconds\n        run: |\n          sleep 25\n```\n\nYou can see the example [here](https://github.com/cloudbeds/trigger-workflow-and-wait-example-repo1/blob/master/.github/workflows/main.yml). For testing a failure case, just add this line after the sleep:\n\n```yaml\n...\n- name: Pause for 25 seconds\n  run: |\n    sleep 25\n    echo \"For testing failure\"\n    exit 1\n```\n\n## Potential Issues\n\n### Changes\n\nIf you do not want the latest build all of the time, please use a versioned copy of the Github Action. You specify the version after the `@` sign.\n\n```yaml\n- uses: cloudbeds/trigger-workflow-and-wait@v1.6.2\n  with:\n    owner: cloudbeds\n    repo: myrepo\n    github_token: ${{ secrets.CB_CI_WORKFLOW_TOKEN }}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudbeds%2Ftrigger-workflow-and-wait","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudbeds%2Ftrigger-workflow-and-wait","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudbeds%2Ftrigger-workflow-and-wait/lists"}