mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-02-09 01:55:18 +00:00
debug(ci): add deployment status step in workflow
This commit is contained in:
parent
662dbf3d0f
commit
6c8aa634e7
18
.github/workflows/ui-tests.yaml
vendored
18
.github/workflows/ui-tests.yaml
vendored
@ -94,6 +94,24 @@ jobs:
|
||||
deploymentUrl,
|
||||
}),
|
||||
});
|
||||
- name: Add deployment status to PR
|
||||
uses: actions/github-script@v6
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
script: |
|
||||
const fs = require('fs');
|
||||
const deploymentUrl = fs.readFileSync('_vercel-deployment-url', 'utf8');
|
||||
await github.rest.repos.createDeploymentStatus({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
deployment_id: context.payload.deployment.id,
|
||||
state: 'success',
|
||||
environment_url: deploymentUrl,
|
||||
log_url: deploymentUrl,
|
||||
description: 'Deployed to Vercel',
|
||||
environment: 'preview',
|
||||
auto_inactive: true,
|
||||
});
|
||||
|
||||
interaction-and-and-accessibility:
|
||||
runs-on: ubuntu-latest
|
||||
|
Loading…
x
Reference in New Issue
Block a user