fix: ci wait for label creation before exit (#6655)

* fix: style and token used on exit

* [CodeFactor] Apply fixes

[ci skip] [skip ci]

Co-authored-by: codefactor-io <support@codefactor.io>
This commit is contained in:
NeverBehave
2021-01-10 19:45:53 -05:00
committed by GitHub
co-authored by codefactor-io
parent b09df0d3e8
commit cb1506e535
3 changed files with 44 additions and 62 deletions
+2 -3
View File
@@ -12,13 +12,12 @@ jobs:
uses: actions/github-script@v3
with:
# by default, JSON format returned
github-token: ${{secrets.GITHUB_TOKEN}}
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
console.log(context)
const body = context.payload.pull_request.body
const number = context.payload.pull_request.number
const script = require(`${process.env.GITHUB_WORKSPACE}/scripts/workflow/test-route/identify.js`)
return script({github, context, core}, body, number)
return await script({github, context, core}, body, number)
- name: Waiting for 200 from the Vercel Preview
if: (env.TEST_CONTINUE)
uses: patrickedqvist/wait-for-vercel-preview@master