ci(docs lint): fix commenting workflow (#36062)
* ci(docs): fix sync process GraphQL codegen needs to be run before sync because otherwise the types are missing. Missed this in local testing because codegen had already been run for other reasons. * fix(troubleshooting sync): unresolved import * ci(docs lint): fix commenting workflow
This commit is contained in:
6
.github/workflows/docs-lint-v2-comment.yml
vendored
6
.github/workflows/docs-lint-v2-comment.yml
vendored
@@ -28,7 +28,7 @@ jobs:
|
||||
uses: actions/github-script@v7
|
||||
with:
|
||||
script: |
|
||||
const artifacts = await github.actions.listWorkflowRunArtifacts({
|
||||
const artifacts = await github.rest.actions.listWorkflowRunArtifacts({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
run_id: ${{ github.event.workflow_run.id }}
|
||||
@@ -38,7 +38,7 @@ jobs:
|
||||
);
|
||||
if (matchingArtifact) {
|
||||
core.setOutput('contains_results', 'true')
|
||||
const download = await github.actions.downloadArtifact({
|
||||
const download = await github.rest.actions.downloadArtifact({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
artifact_id: matchingArtifact.id,
|
||||
@@ -59,7 +59,7 @@ jobs:
|
||||
const fs = require('fs');
|
||||
const prNumber = Number(fs.readFileSync('./pr_number.txt'));
|
||||
const lintResults = fs.readFileSync('./lint_results.txt', 'utf8');
|
||||
await github.issues.createComment({
|
||||
await github.rest.issues.createComment({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
issue_number: prNumber,
|
||||
|
||||
Reference in New Issue
Block a user