GitHub Actions are a powerful tool to automate your workflow. They can be used to run tests, deploy your code, publish a package, and much more.
The cool thing is, there's a GitHub Actions Marketplace where you can find a lot of actions created by... the community. But what if you can't find the action you need? You can create your own and publish it there!
During this course, we'll create an action with Typescript that will add a label to new pull requests automatically.
In this tutorial, we're going to see in detail how to:
Create a GitHub Action in Typescript
Expand our Action to support custom inputs
Integrate with GitHub's API to add labels to Pull Requests
Unit testing our action
Debugging in Visual Studio Code
Publishing our action to the GitHub Marketplace
Using our action in another repository
Some final touches to make our project more robust
USEFUL RESOURCES
Action repo: https://github.com/Balastrong/ga-labe...
Article: https://leonardomontini.dev/typescrip...
Run Actions Locally with act: • Run GitHub Actions locally - act LIVE DEMO
Trigger Actions Manually: • Manually Trigger GitHub Actions
Git Aliases: • Shorter and Easier git Commands - git alias
_______________________________
Hit like and subscribe for more content! :D
Join the Discord community! Here's the invite: / discord
You can also follow me on the other platforms:
Twitter: / balastrong
dev.to: https://dev.to/balastrong
Home: https://leonardomontini.dev/
TikTok: / balastrong
GitHub: https://github.com/Balastrong
Instagram: / devbalastrong
_______________________________
TIMESTAMPS
00:00 Summary
01:36 Building Blocks
04:42 Running the Action
07:43 Read custom inputs
08:27 Interact with GitHub API
15:25 GITHUB_TOKEN incident
15:56 Unit test your Action
19:27 Debug on Visual Studio Code
21:57 Publish on GitHub Marketplace
24:50 Use your Action on other repositories
25:55 Final touches to make it more robust
29:42 Closing remarks
_______________________________
Sound effects from https://www.zapsplat.com
#github #githubactions #tutorial
On this page of the site you can watch the video online Create a Custom GitHub Action with a duration of hours minute second in good quality, which was uploaded by the user Dev Leonardo 01 January 1970, share the link with friends and acquaintances, this video has already been watched 10,579 times on youtube and it was liked by 196 viewers. Enjoy your viewing!