generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 62
Open
Description
below is a typical implementation for us :
We start a deployment:
- name: start deployment
uses: bobheadxi/deployments@v1
if: inputs.DeployStage != ''
id: deployment
with:
step: start
token: ${{inputs.GithubToken}}
env: ${{inputs.DeployStage}}/netlify/${{inputs.DeploymentName}}
desc: ${{inputs.DeployMessage}}
then when done, we mark the deployment as done:
- name: update deployment status
uses: bobheadxi/deployments@v1
if: inputs.DeployStage != ''
with:
step: finish
token: ${{inputs.GithubToken}}
status: ${{job.status}}
env: ${{steps.deployment.outputs.env}}
env_url: ${{steps.netlify.outputs.deploy_url}}
deployment_id: ${{steps.deployment.outputs.deployment_id}}
We've now had to put in some esscape hatches into our workflows while we wait for your resposne (viz if: inputs.DeployStage != ''
), otherwise we get the following error everytime.
Run bobheadxi/deployments@v1
with:
step: start
token: ***
env: pr/1123/netlify/AppStorybook
desc: Deploy preview pr/1123
debug: false
auto_inactive: false
env:
NODE_OPTIONS: --max-old-space-size=8096
targeting REDACTED-ORG/REDACTED-REPO
initializing new deployment for pr/1123/netlify/AppStorybook @ refs/pull/1123/merge
created deployment REDACTED-ID for pr/1123/netlify/AppStorybook @ refs/pull/1123/merge
unexpected error encountered: HttpError: invalid json response body at https://api.github.com/repos/REDACTED-ORG/REDACTED-REPO/deployments/REDACTED-ID/statuses reason: Unexpected end of JSON input
Error: unexpected error encountered: HttpError: invalid json response body at https://api.github.com/repos/REDACTED-ORG/REDACTED-REPO/deployments/REDACTED-ID/statuses reason: Unexpected end of JSON input - see logs for more information
kuri-megane, abivolmv, re-taro, trawick and copelco
Metadata
Metadata
Assignees
Labels
No labels