Use SHA for pull request head

This commit is contained in:
Tim Schaub
2021-10-22 22:08:07 -10:00
parent ac65eed669
commit 635a236ab8

View File

@@ -16,7 +16,7 @@ jobs:
- run: npm install --global netlify-cli
- uses: lewagon/wait-on-check-action@v1.1.1
with:
ref: ${{github.head_ref}}
ref: ${{github.event.pull_request.head.sha}}
check-name: 'build-preview'
repo-token: ${{secrets.GITHUB_TOKEN}}
wait-interval: 10
@@ -32,7 +32,6 @@ jobs:
NETLIFY_SITE_ID: ${{secrets.NETLIFY_SITE_ID}}
run: netlify deploy --dir=build/site --alias=deploy-preview-${{github.event.number}}
- uses: octokit/request-action@v2.x
id: create_check_run
with:
route: POST /repos/{owner}/{repo}/check-runs
owner: openlayers