{"id":51477176,"url":"https://github.com/lee-lott-actions/update-github-deployment","last_synced_at":"2026-07-06T22:01:20.289Z","repository":{"id":362791613,"uuid":"1260791988","full_name":"lee-lott-actions/update-github-deployment","owner":"lee-lott-actions","description":"This repository contains a GitHub Action that updates a GitHub deployment status using the GitHub REST API.","archived":false,"fork":false,"pushed_at":"2026-06-18T12:49:07.000Z","size":33,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-18T14:27:43.077Z","etag":null,"topics":["devops","github-api"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","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/lee-lott-actions.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":".github/CODEOWNERS","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":"2026-06-05T22:00:12.000Z","updated_at":"2026-06-18T12:48:50.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/lee-lott-actions/update-github-deployment","commit_stats":null,"previous_names":["lee-lott-actions/update-github-deployment"],"tags_count":5,"template":false,"template_full_name":"lee-lott-actions/template-github-action-repo","purl":"pkg:github/lee-lott-actions/update-github-deployment","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lee-lott-actions%2Fupdate-github-deployment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lee-lott-actions%2Fupdate-github-deployment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lee-lott-actions%2Fupdate-github-deployment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lee-lott-actions%2Fupdate-github-deployment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lee-lott-actions","download_url":"https://codeload.github.com/lee-lott-actions/update-github-deployment/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lee-lott-actions%2Fupdate-github-deployment/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35206987,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-06T02:00:07.184Z","response_time":106,"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":["devops","github-api"],"created_at":"2026-07-06T22:01:19.751Z","updated_at":"2026-07-06T22:01:20.268Z","avatar_url":"https://github.com/lee-lott-actions.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Set Deployment Status GitHub Action\n\nThis GitHub Action updates the status of an existing GitHub deployment using the GitHub REST API.\n\n## Features\n- Updates the status for an existing deployment.\n- Uses the GitHub REST API (no dependencies on the CLI or local git).\n- Fully supports GitHub Organizations and user-owned repositories.\n- Outputs the deployment status id and state for use in subsequent workflow steps.\n\n## Inputs\n| Name          | Description                                              | Required | Default |\n|---------------|----------------------------------------------------------|----------|---------|\n| `deployment-id` | The id of the deployment to update                    | Yes      | N/A     |\n| `state`       | The state of the deployment status (`queued`, `in_progress`, `success`, `failure`, `error`, `pending`, `inactive`) | Yes | N/A |\n| `description` | A short description of the deployment status            | Yes      | N/A     |\n| `org-name`    | The name of the GitHub Organization                     | Yes      | N/A     |\n| `repo-name`   | The name of the repository                              | Yes      | N/A     |\n| `token`       | GitHub token with access to update a deployment status  | Yes      | N/A     |\n\n## Outputs\n| Name                      | Description                                         |\n|---------------------------|-----------------------------------------------------|\n| `result`                  | Result of the action (\"success\" or \"failure\")      |\n| `error-message`           | Error message if the action fails                  |\n| `deployment-status-id`    | The id of the deployment status                    |\n| `deployment-status-state` | The state of the deployment status                 |\n\n## Usage\n1. **Add the Action to Your Workflow**:  \n   Create or update a workflow file (e.g., `.github/workflows/set-deployment-status.yml`) in your repository.  \n   **Ensure you pass all required inputs and use a valid token with deployments write access.**\n\n2. **Reference the Action**:  \n   Use the action by referencing the repository and version (e.g., `v1`).\n\n3. **Example Workflow**:\n   ```yaml\n   name: Set Deployment Status\n   on:\n     workflow_dispatch:\n\n   jobs:\n     set-deployment-status:\n       runs-on: ubuntu-latest\n       steps:\n         - name: Set Deployment Status\n           id: set-deployment-status\n           uses: lee-lott-actions/set-deployment-status@v1\n           with:\n             deployment-id: '123456789'\n             state: 'success'\n             description: 'Deployment completed successfully.'\n             org-name: ${{ github.repository_owner }}\n             repo-name: ${{ github.event.repository.name }}\n             token: ${{ secrets.GITHUB_TOKEN }}\n\n         - name: Print Result\n           run: |\n             if [[ \"${{ steps.set-deployment-status.outputs.result }}\" == \"success\" ]]; then\n               echo \"Deployment status updated successfully.\"\n               echo \"Status ID: ${{ steps.set-deployment-status.outputs.deployment-status-id }}\"\n               echo \"State: ${{ steps.set-deployment-status.outputs.deployment-status-state }}\"\n             else\n               echo \"Error: ${{ steps.set-deployment-status.outputs.error-message }}\"\n               exit 1\n             fi\n   ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flee-lott-actions%2Fupdate-github-deployment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flee-lott-actions%2Fupdate-github-deployment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flee-lott-actions%2Fupdate-github-deployment/lists"}