+

Cookies on the Business Insider India website

Business Insider India has updated its Privacy and Cookie policy. We use cookies to ensure that we give you the better experience on our website. If you continue without changing your settings, we\'ll assume that you are happy to receive all cookies on the Business Insider India website. However, you can change your cookie setting at any time by clicking on our Cookie Policy at any time. You can also see our Privacy Policy.

Close
HomeQuizzoneWhatsappShare Flash Reads
 

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

Oct 16, 2018, 22:30 IST

GitHubChris Wanstrath, co-founder of GitHub

Advertisement
  • GitHub has announced a new feature called GitHub Actions, which will allow users to build, share and execute code directly on the site.
  • This feature cuts down on the steps developers need to take when running code, such as installing software files and testing the code.
  • Actions is launching in a limited public beta on Tuesday.

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."

Advertisement

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.

Screenshot

Screenshot

Advertisement

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.

Screenshot

Screenshot

Advertisement

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

Screenshot

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

Screenshot

Advertisement

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.

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."

Advertisement

GitHub

NOW WATCH: Wikipedia founder Jimmy Wales: There's going to be an 'enormous backlash' against Donald Trump's lies

You are subscribed to notifications!
Looks like you've blocked notifications!
Next Article