|
|
@@ -49,36 +49,6 @@ jobs:
|
|
|
|
|
|
steps:
|
|
|
|
|
|
- # set status=in_progress
|
|
|
- - uses: actions/github-script@v1
|
|
|
- env:
|
|
|
- number: ${{ github.event.client_payload.pull_request.number }}
|
|
|
- job: ${{ github.job }}
|
|
|
- conclusion: ${{ job.status }}
|
|
|
- with:
|
|
|
- github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
- script: |
|
|
|
- const { data: pull } = await github.pulls.get({
|
|
|
- ...context.repo,
|
|
|
- pull_number: process.env.number
|
|
|
- });
|
|
|
- const ref = pull.head.sha;
|
|
|
- console.log("\n\nPR sha: " + ref)
|
|
|
- const { data: checks } = await github.checks.listForRef({
|
|
|
- ...context.repo,
|
|
|
- ref
|
|
|
- });
|
|
|
- console.log("\n\nPR CHECKS: " + checks)
|
|
|
- const check = checks.check_runs.filter(c => c.name === process.env.job);
|
|
|
- console.log("\n\nPR Filtered CHECK: " + check)
|
|
|
- console.log(check)
|
|
|
- const { data: result } = await github.checks.update({
|
|
|
- ...context.repo,
|
|
|
- check_run_id: check[0].id,
|
|
|
- status: 'in_progress',
|
|
|
- });
|
|
|
- return result;
|
|
|
-
|
|
|
# Check out merge commit
|
|
|
- name: Fork based /ok-to-test-managed checkout
|
|
|
uses: actions/checkout@v2
|