我正在遵循 HashiCorp 的学习指南,了解如何设置 GitHub Actions 和 terraform。除了使用 Terraform 计划更新 PR 的步骤之外,一切都运行良好。
\n我遇到以下错误:
\n\nAn error occurred trying to start process \'/home/runner/runners/2.287.1/externals/node12/bin/node\' with working directory \'/home/runner/work/ccoe-aws-ou-scp-manage/ccoe-aws-ou-scp-manage\'. Argument list too long\n\nRun Code Online (Sandbox Code Playgroud)\n我正在使用的代码是:
\n - uses: actions/github-script@0.9.0\n if: github.event_name == \'pull_request\'\n env:\n PLAN: "terraform\\n${{ steps.plan.outputs.stdout }}"\n with:\n github-token: ${{ secrets.GITHUB_TOKEN }}\n script: |\n const output = `#### Terraform Format and Style \\`${{ steps.fmt.outcome }}\\`\n #### Terraform Initialization \xe2\x9a\x99\xef\xb8\x8f\\`${{ steps.init.outcome }}\\`\n #### Terraform Plan \\`${{ steps.plan.outcome }}\\`\n <details><summary>Show Plan</summary>\n \\`\\`\\`${process.env.PLAN}\\`\\`\\`\n </details>\n *Pusher: …Run Code Online (Sandbox Code Playgroud)