mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-01-20 16:30:34 +00:00
fix(ci): add deployment so it shows up as deployed in PR
This commit is contained in:
parent
31197c1f71
commit
1e27bc64cf
20
.github/workflows/ui-tests.yaml
vendored
20
.github/workflows/ui-tests.yaml
vendored
@ -73,6 +73,26 @@ jobs:
|
||||
repo: context.repo.repo,
|
||||
body: `Deployed to ${deploymentUrl}`,
|
||||
});
|
||||
- name: Add deployment 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.createDeployment({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
ref: context.sha,
|
||||
environment: 'preview',
|
||||
transient_environment: true,
|
||||
required_contexts: [],
|
||||
auto_merge: false,
|
||||
production_environment: false,
|
||||
payload: JSON.stringify({
|
||||
deploymentUrl,
|
||||
}),
|
||||
});
|
||||
|
||||
interaction-and-and-accessibility:
|
||||
runs-on: ubuntu-latest
|
||||
|
Loading…
x
Reference in New Issue
Block a user