Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering GitHub Actions

You're reading from   Mastering GitHub Actions Advance your automation skills with the latest techniques for software integration and deployment

Arrow left icon
Product type Paperback
Published in Mar 2024
Publisher Packt
ISBN-13 9781805128625
Length 490 pages
Edition 1st Edition
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Eric Chapman Eric Chapman
Author Profile Icon Eric Chapman
Eric Chapman
Arrow right icon
View More author details
Toc

Table of Contents (22) Chapters Close

Preface 1. Part 1:Centralized Workflows to Assist with Governance FREE CHAPTER
2. Chapter 1: An Overview of GitHub and GitHub Actions 3. Chapter 2: Exploring Workflows 4. Chapter 3: Deep Dive into Reusable Workflows and Composite Actions 5. Chapter 4: Workflow Personalization Using GitHub Apps 6. Chapter 5: Utilizing Starter Workflows in Your Team 7. Part 2: Implementing Advanced Patterns within Actions
8. Chapter 6: Using HashiCorp Vault in GitHub 9. Chapter 7: Deploying to Azure Using OpenID Connect 10. Chapter 8: Working with Checks 11. Chapter 9: Annotating Code with Actions 12. Chapter 10: Advancing with Event-Driven Workflows 13. Chapter 11: Setting Up Self-Hosted Runners 14. Part 3: Best Practices, Patterns, Tricks, and Tips Toolkit
15. Chapter 12: The Crawler Pattern 16. Chapter 13: The Configuration Centralization Pattern 17. Chapter 14: Using Remote Workflows to Kickstart Your Products 18. Chapter 15: Housekeeping Tips for Your Organization 19. Chapter 16: Handy Workflows for Managing Your Software 20. Index 21. Other Books You May Enjoy

Annotations in action

In this section, we will leverage an existing script from the previous chapter to demonstrate adding annotations to a file in a pull request check run. We’re looking to clone this script and alter it to add an annotation to the third step within the script to add an annotation to the repository’s README file. We’ll run and observe the different types of annotation levels and target sections or a line within a file.

Follow these steps to create an annotation on our README file:

  1. Clone the script at Chapter 8/scratchpad/.github/workflows/build-create-check-in-step-part-three.yml into the scratchpad repository.
  2. Change the workflow’s name to avoid a clash with other workflow runs (optionally, disable the workflows, as demonstrated in the previous chapter). I named my copy create a check in a step with annotations, but it doesn’t matter for this exercise.
  3. Update the third step in the steps property in the workflow...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime