Create a Custom GitHub Action
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://ift.tt/0IsMhvL Article: https://ift.tt/FQNp8iP Run Actions Locally with act: https://youtu.be/Ugonll0e2Os Trigger Actions Manually: https://youtu.be/KGfncu595pc Git Aliases: https://youtu.be/Uk4GnYoQx_I _______________________________ Hit like and subscribe for more content! :D Join the Discord community! Here's the invite: https://ift.tt/fhndF1R You can also follow me on the other platforms: Twitter: https://twitter.com/Balastrong dev.to: https://ift.tt/ZrlxYcP Home: https://ift.tt/b7Wz1kt TikTok: https://ift.tt/08FOyXE GitHub: https://ift.tt/xKQOYoA Instagram: https://ift.tt/SzEoRh3 _______________________________ 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://ift.tt/RYouaVv #github #githubactions #tutorial
https://www.youtube.com/watch?v=N26xgQ7kLKo

0 Comments