Await stuff
This commit is contained in:
parent
6dd75691d6
commit
179efc987d
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@ -37,7 +37,7 @@ jobs:
|
|||||||
script: |
|
script: |
|
||||||
const fs = require('fs')
|
const fs = require('fs')
|
||||||
const expected = fs.readFileSync("README.md")
|
const expected = fs.readFileSync("README.md")
|
||||||
const release = github.repos.getReleaseByTag({
|
const release = await github.repos.getReleaseByTag({
|
||||||
...context.repo,
|
...context.repo,
|
||||||
tag: "ci-test-${{ matrix.os }}",
|
tag: "ci-test-${{ matrix.os }}",
|
||||||
})
|
})
|
||||||
@ -51,11 +51,11 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
github-token: ${{secrets.GITHUB_TOKEN}}
|
github-token: ${{secrets.GITHUB_TOKEN}}
|
||||||
script: |
|
script: |
|
||||||
const release = github.repos.getReleaseByTag({
|
const release = await github.repos.getReleaseByTag({
|
||||||
...context.repo,
|
...context.repo,
|
||||||
tag: "ci-test-${{ matrix.os }}",
|
tag: "ci-test-${{ matrix.os }}",
|
||||||
})
|
})
|
||||||
github.repos.deleteRelease({
|
await github.repos.deleteRelease({
|
||||||
...context.repo,
|
...context.repo,
|
||||||
release_id: release.id
|
release_id: release.id
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user