From the course: Advanced GitHub Actions
Unlock the full course today
Join today to access over 24,200 courses taught by industry experts.
Use actions/core in JavaScript actions - GitHub Tutorial
From the course: Advanced GitHub Actions
Use actions/core in JavaScript actions
- [Instructor] The GitHub Actions Toolkit is a collection of JavaScript packages that help developers to create JavaScript actions. Among the several packages available in the toolkit, the Core and GitHub packages are two of the most essential. In this lesson, we'll look at some of the features of the actions/core package. The core package provides functionality for working with what I'll call the front end and internals of the GitHub Actions framework. Particularly, we can use the Core package to read inputs and set outputs, create annotations that are presented on the GitHub Actions web interface, and set exit codes that affect a workflow's status. Let's look at examples for each of these. Working with inputs and outputs starts with the action metadata file. Any inputs and action uses are defined there along with any outputs and action returns. In the workflow file, inputs are passed to an action using a with…