Controlling When Pipeline Workflows Run with Triggers - Github Actions

Controlling When Pipeline Workflows Run with Triggers - Github Actions

185 Lượt nghe
Controlling When Pipeline Workflows Run with Triggers - Github Actions
🚀 In this video, we look at how to best use GitHub Actions "on" triggers to control when your workflow pipelines run. We specifically go through: 1. Using the "push" trigger to dictate what branches will trigger workflows. 2. Using the "pull_request" trigger to allow PRs to start pipelines. 3. Scheduling jobs with the "schedule" trigger, so you can do nightly builds and similar stuff. 4. Manually triggering workflows with "workflow_dispatch". 5 Advanced topics such as reusing workflows & further documentation. 🖥️ I hope you enjoy the examples and code shown in the video, so that you can improve your CI/CD skills and improve the automation of your code! 👨‍💻 Get ready to learn more about pipelines 🔥 #ci #cd #coding #github #actions #pipelines #workflows #automation #cpp #golang #rust #build #jobs #steps 🔗🔗🔗🔗Important Links🔗🔗🔗🔗 Pipeline source code: https://github.com/matheusgomes28/pipelinin/tree/pt2-on-triggers Github Actions Documentation: https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions Crontab Guru: https://crontab.guru/ 📱📱📱📣📣Socials📣📣📱📱📱 discord - https://discord.com/invite/ZZwf6Wnx2U twitter - https://twitter.com/CodingWithMat 🕰️Timestamps 🕰️ 00:00-01:28 Triggering Pipelines on Commits 01:28-02:45 Triggering Pipelines on Pull Requests 02:45-03:27 Ideal Default Triggers 03:27-03:56 Avoid Duplicate Runs on Pull Requests 03:56-05:10 Triggering Pipelines on a Schedule 05:10-07:44 Manually Triggering Pipelines 07:44-09:16 Calling Workflows from other Workflow Files