Interview Prep/GitHub Actions/Reuse at Scale: Reusable Workflows & Actions

You need an action that comments a Terraform plan summary on PRs and must work on Linux and Windows. Which kind?

BeginnerScenarioReuse at Scale: Reusable Workflows & Actions
Answer

Situation read → API calls, text processing, cross-platform.

What I'd do →

  1. JavaScript action (runs.using: node24) using @actions/github to find and update an existing bot comment (avoid spam).
  2. Bundle with ncc, commit dist/, test with Jest and an integration workflow on both OSes.

Why → Docker actions do not run on Windows; composite with bash scripting gets fragile for API pagination and JSON.

Interview tip → "Update the existing comment instead of posting a new one each run" shows UX awareness.

All GitHub Actions questions Roadmap: GitHub Actions

More on Reuse at Scale: Reusable Workflows & Actions