Update index.mjs
This commit is contained in:
@@ -207,12 +207,12 @@ async function wait(seconds) {
|
|||||||
try {
|
try {
|
||||||
const {repository:{object:{oid}}} = await graphql(
|
const {repository:{object:{oid}}} = await graphql(
|
||||||
`
|
`
|
||||||
query Sha {
|
query Sha {
|
||||||
repository(owner: "${github.context.repo.owner}", name: "${github.context.repo.repo}") {
|
repository(owner: "${github.context.repo.owner}", name: "${github.context.repo.repo}") {
|
||||||
object(expression: "${committer.head}:${filename}") { ... on Blob { oid } }
|
object(expression: "${committer.head}:${filename}") { ... on Blob { oid } }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`,
|
`,
|
||||||
{headers:{authorization:`token ${committer.token}`}},
|
{headers:{authorization:`token ${committer.token}`}},
|
||||||
)
|
)
|
||||||
committer.sha = oid
|
committer.sha = oid
|
||||||
@@ -325,12 +325,12 @@ async function wait(seconds) {
|
|||||||
try {
|
try {
|
||||||
const {repository:{object:{oid}}} = await graphql(
|
const {repository:{object:{oid}}} = await graphql(
|
||||||
`
|
`
|
||||||
query Sha {
|
query Sha {
|
||||||
repository(owner: "${github.context.repo.owner}", name: "${github.context.repo.repo}") {
|
repository(owner: "${github.context.repo.owner}", name: "${github.context.repo.repo}") {
|
||||||
object(expression: "${committer.head}:${path}") { ... on Blob { oid } }
|
object(expression: "${committer.head}:${path}") { ... on Blob { oid } }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`,
|
`,
|
||||||
{headers:{authorization:`token ${committer.token}`}},
|
{headers:{authorization:`token ${committer.token}`}},
|
||||||
)
|
)
|
||||||
sha = oid
|
sha = oid
|
||||||
|
|||||||
Reference in New Issue
Block a user