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:
Charis
2025-06-05 13:16:36 -04:00
committed by GitHub
parent 3158807579
commit 4b9662b21e
5 changed files with 13 additions and 11 deletions

View File

@@ -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,