Add commit status with preview URL
This commit is contained in:
@@ -33,16 +33,12 @@ jobs:
|
|||||||
run: netlify deploy --dir=build/site --alias=deploy-preview-${{github.event.number}}
|
run: netlify deploy --dir=build/site --alias=deploy-preview-${{github.event.number}}
|
||||||
- uses: octokit/request-action@v2.x
|
- uses: octokit/request-action@v2.x
|
||||||
with:
|
with:
|
||||||
route: POST /repos/{owner}/{repo}/check-runs
|
route: POST /repos/{owner}/{repo}/statuses/{sha}
|
||||||
owner: openlayers
|
owner: openlayers
|
||||||
repo: openlayers
|
repo: openlayers
|
||||||
name: preview-url
|
sha: ${{github.event.pull_request.head.sha}}
|
||||||
head_sha: ${{github.event.pull_request.head.sha}}
|
state: "success"
|
||||||
details_url: https://deploy-preview-${{github.event.number}}--ol-site.netlify.app
|
target_url: https://deploy-preview-${{github.event.number}}--ol-site.netlify.app
|
||||||
conclusion: "success"
|
description: "Preview URL"
|
||||||
status: "completed"
|
|
||||||
output: |
|
|
||||||
title: Preview URL
|
|
||||||
summary: URL of the preview deploy
|
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||||
|
|||||||
Reference in New Issue
Block a user