Book Image

Automating Workflows with GitHub Actions

By : Priscila Heller
Book Image

Automating Workflows with GitHub Actions

By: Priscila Heller

Overview of this book

GitHub Actions is one of the most popular products that enables you to automate development tasks and improve your software development workflow. Automating Workflows with GitHub Actions uses real-world examples to help you automate everyday tasks and use your resources efficiently. This book takes a practical approach to helping you develop the skills needed to create complex YAML files to automate your daily tasks. You'll learn how to find and use existing workflows, allowing you to get started with GitHub Actions right away. Moving on, you'll discover complex concepts and practices such as self-hosted runners and writing workflow files that leverage other platforms such as Docker as well as programming languages such as Java and JavaScript. As you advance, you'll be able to write your own JavaScript, Docker, and composite run steps actions, and publish them in GitHub Marketplace! You'll also find instructions to migrate your existing CI/CD workflows into GitHub Actions from platforms like Travis CI and GitLab. Finally, you'll explore tools that'll help you stay informed of additions to GitHub Actions along with finding technical support and staying engaged with the community. By the end of this GitHub book, you'll have developed the skills and experience needed to build and maintain your own CI/CD pipeline using GitHub Actions.
Table of Contents (14 chapters)
1
Section 1:Introduction and Overview of Technologies Used with GitHub Actions
4
Section 2: Advanced Concepts and Hands-On Exercises to Create Actions
9
Section 3: Customizing Existing Actions, Migrations, and the Future of GitHub Actions

Finding existing actions

As you have learned in previous chapters, using existing actions is a very efficient way to use GitHub Actions without the need to write the code for them. The GitHub Actions community is regularly contributing new actions to the GitHub Marketplace daily. There are over 7,000 actions that you can browse through, and it is likely that you will find something to help you with your CI/CD tasks.

Important note

You can browse GitHub Marketplace without being logged in to your GitHub user account. You will need to be logged in to add an existing action to your workflow, however.

The next steps will guide you in searching for actions within Marketplace:

  1. To start browsing existing actions, navigate to https://github.com/marketplace.
  2. Then, click on Actions, on the left-hand side.

    You can navigate the many pages of over 7,000 existing actions, or filter the results by category, such as Continuous integration, Dependency management, as illustrated...