diff --git a/.github/workflows/doc-publish-pr.yml b/.github/workflows/doc-publish-pr.yml index a9e7c072cf6f58..786bd14aed2776 100644 --- a/.github/workflows/doc-publish-pr.yml +++ b/.github/workflows/doc-publish-pr.yml @@ -30,8 +30,12 @@ jobs: - name: Load PR number if: steps.download-artifacts.outputs.found_artifact == 'true' - run: | - echo "PR_NUM=$(> $GITHUB_ENV + uses: actions/github-script@v7 + with: + script: | + let fs = require("fs"); + let pr_number = Number(fs.readFileSync("./pr_num/pr_num")); + core.exportVariable("PR_NUM", pr_number); - name: Check PR number if: steps.download-artifacts.outputs.found_artifact == 'true'