Tech

Here's a look at GitHub Actions, GitHub's new feature that's like 'Apple Shortcuts, but for code.'

GitHub founder and CEO Chris Wanstrath
Chris Wanstrath, co-founder of GitHub GitHub
Read in app

Executing code on GitHub, essentially a Google Docs for code, is about to get easier for programmers — the company is releasing an “Apple Shortcuts, but for code.”

GitHub, which hosts open-source projects, just announced a new feature, called GitHub Actions, to cut down on the steps developers need to take to execute their code, no matter what language they use. This new feature arrives as Microsoft is preparing to acquire GitHub. Before, developers working on GitHub would have to take many manual steps to build, run and deploy their projects. In many cases, they have to download environments, run the project for testing and more.

With GitHub Actions, developers will be able to build, share and execute code directly on the site by creating an action for a step that they need to take, connecting these steps with drag-and-drop, and running the project with a simple click of a button.

“We can take a single application and deploy it to five different clouds,” Sam Lambert, Head of Platform at GitHub told Business Insider. “You can press a button and deploy your application. You can page and text your team, generate documentation and build and test your code. It’s an Apple Shortcuts, but for code.”

GitHub Actions is being launched Tuesday in a limited public beta.

Here's a quick look at how it works:

Users can build, package, release, update, and deploy their project, all on the GitHub site. They can do all this in a space called a "workflow." For example, a user can create a workflow for building and testing.

Screen Shot 2018 10 15 at 12.28.22 PM
Screenshot
Screen Shot 2018 10 15 at 12.29.02 PM
Screenshot

 

Each step that developers need to take for this workflow is called an "action." The user can set up actions for installing and testing and connect one action to another by dragging and dropping a line to link them. Before GitHub Actions, if a developer wanted to run a project, they needed to install the required packages (or a set of software files) and test the code themselves. 

Screen Shot 2018 10 15 at 12.31.21 PM
Screenshot
Screen Shot 2018 10 15 at 12.31.48 PM
Screenshot

 

The person creating the workflow can then commit it to the project.

Screen Shot 2018 10 15 at 12.32.36 PM
Screenshot

 

Users can also create a text file instead of using the visual editor to create a workflow.

Screen Shot 2018 10 15 at 12.33.50 PM
Screenshot

 

Once users create a pull request, or take the code for modifying, the packages will be automatically installed and tested for users when they run this workflow.

Screen Shot 2018 10 15 at 1.46.25 PM
Screenshot

With GitHub Actions, users can also publish and send alerts every time there's a new release and deploy production-ready code.

"There’s infinite possibilities and amazing flexibility," Lambert said. "It’s so open-ended and flexible. All I want to do is sit on GitHub and Twitter and watch people build this stuff."

UPDATED Actions blog screenshot
GitHub

Read next

Rosalie Chan headshot
Rosalie Chan
Rosalie Chan is a senior editor for Business Insider's tech team. Previously, she covered cloud computing and enterprise tech, reporting on companies like Google Cloud, Amazon Web Services, Microsoft, Intel, Alibaba Cloud, Atlassian, GitHub, VMware, Broadcom, and more. She has written extensively on topics including cloud computing, developer companies, open source, and sexism and sexual harassment in the tech industry. She has received the San Francisco Press Club award for continuing coverage for her reporting on sexism and sexual harassment in Silicon Slopes and the Excellence in Business / Consumer / Tech Reporting award from the Asian American Journalists Association for her investigation into the coding boot camp Holberton School. Most recently, she was an editor on the Business Insider investigative package, The True Cost of Data Centers, which received a George Polk Award and an honorable mention from SABEW.Rosalie joined Business Insider after working as a software engineer and freelance journalist. She studied journalism, computer science, and technology and business law at Northwestern University. Her work has previously appeared in TIME, the Huffington Post, VICE, Pacific Standard, Inverse, Chicago magazine, the Chicago Reporter, and more. She's based in San Francisco.