https://github.com/AnandChowdhary/render-deployment-status-action
Add pull request deployment statuses for Render.com
https://github.com/AnandChowdhary/render-deployment-status-action
deployments github-deployment preview-environment render render-com
Last synced: 11 months ago
JSON representation
Add pull request deployment statuses for Render.com
- Host: GitHub
- URL: https://github.com/AnandChowdhary/render-deployment-status-action
- Owner: AnandChowdhary
- License: mit
- Archived: true
- Created: 2023-06-21T09:12:41.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-29T19:30:17.000Z (over 2 years ago)
- Last Synced: 2025-07-21T15:06:49.872Z (11 months ago)
- Topics: deployments, github-deployment, preview-environment, render, render-com
- Language: TypeScript
- Homepage:
- Size: 1.26 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# Render Deployment Status Action
[](https://github.com/AnandChowdhary/render-deployment-status-action/actions/workflows/test.yml)
## How it works
By default, when Render.com creates a PR environment, it adds a comment to your PR. We use the Render API to add a deployment and update its state.

Note that this action waits until the deployment is completed, so you will be billed for the minutes where it's essentially waiting for the deployment to be completed or errored.
## Workflow
Add you Render API key to the Actions secret `RENDER_API_KEY` and create a worklow `.github/workflows/render-deployment-status.yml`:
```yaml
name: Render deployment status
on:
issue_comment:
types: [created]
jobs:
update:
timeout-minutes: 15
runs-on: ubuntu-latest
if: github.event.comment.user.login == 'render[bot]'
permissions:
deployments: write
steps:
- uses: AnandChowdhary/render-deployment-status-action@main
with:
render-api-key: ${{ secrets.RENDER_API_KEY }}
github-token: ${{ secrets.GITHUB_TOKEN }}
```
This workflow uses the latest version of this action and runs whenever a comment is made by Render's app. The default GitHub token is used with "write" permission for "deployments".