Use SHA for pull request head
This commit is contained in:
@@ -16,7 +16,7 @@ jobs:
|
|||||||
- run: npm install --global netlify-cli
|
- run: npm install --global netlify-cli
|
||||||
- uses: lewagon/wait-on-check-action@v1.1.1
|
- uses: lewagon/wait-on-check-action@v1.1.1
|
||||||
with:
|
with:
|
||||||
ref: ${{github.head_ref}}
|
ref: ${{github.event.pull_request.head.sha}}
|
||||||
check-name: 'build-preview'
|
check-name: 'build-preview'
|
||||||
repo-token: ${{secrets.GITHUB_TOKEN}}
|
repo-token: ${{secrets.GITHUB_TOKEN}}
|
||||||
wait-interval: 10
|
wait-interval: 10
|
||||||
@@ -32,7 +32,6 @@ jobs:
|
|||||||
NETLIFY_SITE_ID: ${{secrets.NETLIFY_SITE_ID}}
|
NETLIFY_SITE_ID: ${{secrets.NETLIFY_SITE_ID}}
|
||||||
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
|
||||||
id: create_check_run
|
|
||||||
with:
|
with:
|
||||||
route: POST /repos/{owner}/{repo}/check-runs
|
route: POST /repos/{owner}/{repo}/check-runs
|
||||||
owner: openlayers
|
owner: openlayers
|
||||||
|
|||||||
Reference in New Issue
Block a user