/render-action

Render GitHub Action

Primary LanguageTypeScriptMIT LicenseMIT

typescript-action status

Render GitHub Action

Use this action to track a deployment on Render

Action Inputs

Name Description Required
service-id The id of the Render service to be tracked. Yes
render-token Render API Token to use - see documentation No ❌
github-token GitHub Token to use No ❌
sleep Sleep time between the render deployment success and setting the Github deployment as successful.
(default: 0)
No ❌
retries Maximum number of retries trying to find the deployment. Note: Retries will be attempted every 5 seconds
(default: 50)
No ❌
wait Sleep time between retries to find Render deployments statuses
(default: 8000 [8 seconds])
No ❌

Example usage

name: Render
on: [pull_request]:
jobs:
  deploy:
    name: Wait for Deploy
    runs-on: ubuntu-latest
    steps:
      - name: Wait for Render Deployment
        uses: bounceapp/render-action@0.6.0
        with:
          render-token: ${{ secrets.RENDER_TOKEN }}
          github-token: ${{ secrets.GITHUB_TOKEN }}
          service-id: srv-xxxxxxxxxxxxxxxxxxxx
          retries: 20
          wait: 16000
          sleep: 30000

Contribute

Publish to a distribution branch

Actions are run from GitHub repos so we will checkin the packed dist folder.

Then run ncc and push the results:

$ npm run all
$ git add dist
$ git commit -a -m "prod dependencies"
$ git push origin releases/v1

See the versioning documentation