{"id":21762931,"url":"https://github.com/kamaz/deploy-action","last_synced_at":"2025-03-21T04:43:22.645Z","repository":{"id":43992950,"uuid":"240371436","full_name":"kamaz/deploy-action","owner":"kamaz","description":"Wrapper around GitHub Deployment api for GitHub actions","archived":false,"fork":false,"pushed_at":"2023-01-05T07:16:25.000Z","size":1012,"stargazers_count":1,"open_issues_count":13,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-01T15:46:32.885Z","etag":null,"topics":["actions","automation","ci","deployment","deployment-status","github","github-ac","github-action"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/kamaz.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}},"created_at":"2020-02-13T21:51:58.000Z","updated_at":"2023-06-26T02:19:51.000Z","dependencies_parsed_at":"2023-01-11T17:22:30.910Z","dependency_job_id":null,"html_url":"https://github.com/kamaz/deploy-action","commit_stats":{"total_commits":37,"total_committers":1,"mean_commits":37.0,"dds":0.0,"last_synced_commit":"e47c9a94f755137e9d1b115575a86e02808f0b95"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":"actions/typescript-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamaz%2Fdeploy-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamaz%2Fdeploy-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamaz%2Fdeploy-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamaz%2Fdeploy-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kamaz","download_url":"https://codeload.github.com/kamaz/deploy-action/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244739940,"owners_count":20501990,"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","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":["actions","automation","ci","deployment","deployment-status","github","github-ac","github-action"],"created_at":"2024-11-26T12:13:34.533Z","updated_at":"2025-03-21T04:43:22.616Z","avatar_url":"https://github.com/kamaz.png","language":"TypeScript","readme":"# deploy action\n\nAction is a wrapper around deployment api.\n\nFor detail documentation and explanation refer to:\n\n- [GitHub Deployments API](https://developer.github.com/v3/repos/deployments/)\n- [GitHub Deployments API Create Deployment Section](https://developer.github.com/v3/repos/deployments/#create-a-deployment)\n- [GitHub Deployments API Create Deployment Status Section](https://developer.github.com/v3/repos/deployments/#create-a-deployment-status)\n\n## Inputs\n\n| Input                 | Optional | Default | Description            |\n| --------------------- | -------- | ------- | ---------------------- |\n| token                 | No       | -       | github token           |\n| deploymentId          | Yes      | Empty   |                        |\n| state                 | Yes      | pending |                        |\n| environmentUrl        | Yes      | -       |                        |\n| requiredContext       | Yes      | Empty   | Format 'value1,value2' |\n| autoMerge             | Yes      | false   |                        |\n| environment           | Yes      | `pr-number` or `qa`     | for pull request it default to pr-[number] for push it default to qa                      |\n| transientEnvironment  | Yes      | false   |                        |\n| productionEnvironment | Yes      | false   |                        |\n\n## Outputs\n\n| Output       | Value                                                    |\n| ------------ | -------------------------------------------------------- |\n| deploymentId | a deployment number that can be used to set status later |\n\n## Example usage\n\n```yaml\n- uses: kamaz/deploy-action@v1.0\n  id: deployment\n  with:\n    token: ${{ secrets.GITHUB_TOKEN }}\n    environmentUrl: ${{ format('https://pr-{0}.example.com', github.event.number) }}\n#   \n# Your deployment steps\n# \n- uses: kamaz/deploy-action@v1.0\n  if: success()\n  with:\n    deploymentId: ${{ steps.deployment.outputs.deploymentId }}\n    token: ${{ secrets.GITHUB_TOKEN }}\n    environmentUrl: ${{ format('https://pr-{0}.example.com', github.event.number) }}\n    state: success\n- uses: kamaz/deploy-action@v1.0\n  if: failure()\n  with:\n    deploymentId: ${{ steps.deployment.outputs.deploymentId }}\n    token: ${{ secrets.GITHUB_TOKEN }}\n    environmentUrl: ${{ format('https://pr-{0}.example.com', github.event.number) }}\n    state: failure\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkamaz%2Fdeploy-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkamaz%2Fdeploy-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkamaz%2Fdeploy-action/lists"}