What problem does it solve?
This Skill guides developers in writing high-quality, robust JavaScript code for GitHub Actions using actions/github-script@v8, preventing common errors and ensuring reliable automation. It helps streamline the development of custom action logic.
Core Features & Use Cases
- Standardized Logging: Use
core.info, core.warning, and core.error for consistent and effective logging.
- Input/Output Management: Learn to set action outputs (
core.setOutput), export environment variables (core.exportVariable), and retrieve inputs (core.getInput).
- Robust Error Handling: Implement
core.setFailed for clear action failure reporting and proper error catching.
- Step Summary Generation: Utilize
core.summary.* functions to create rich, informative step summaries in Markdown.
- Use Case: A developer needs to write a JavaScript action that processes an input and sets an output. This skill guides them to use
core.getInput and core.setOutput correctly, along with proper error handling.
Quick Start
Consult the github-script skill to learn how to use core.info for logging and core.setOutput to define outputs in your GitHub Action JavaScript.