Using Github Actions with Repository Dispatch Event. If you ever set up a Github Actions workflow on a repository. You can use the GitHub API to trigger a webhook event called repository_dispatch when you want to trigger a workflow for activity that happens outside of GitHub.
If you’ve ever set up a Github Actions workflow on a repository, you will recognize the YAML file that executes steps upon any code you push to the repository.
I used Strapi CMS to manage content for my website. And I realized that I needed to trigger the workflow above every time I updated the content on Strapi. I needed to update my site every time I changed the content.
Into the picture came the amazing manual Repository Dispatch event. I realized I could use the Github API to let my Gatsby repository know it should build and deploy my updated site.
To trigger a repository dispatch one must send a POST
request to the following Github API endpoint
https://api.github.com/repos/{owner}/{repo}/dispatches
In this article we are going to compare three most popular machine learning projects for you.
This article will shed light on one of the features that Github offers, which enables us to achieve the above step and much-more.
Deploying my portfolio website on Github Pages using Github Actions. I recently deployed my portfolio site and wanted to try out github actions and this is my experience of automating the deployment.
Create an action, test it offline, and publish it in the GitHub Action Marketplace. Automation, complexity reduction, reproducibility, and maintainability are all advantages that can be realized by a continuous integration (CI) pipeline. With GitHub Actions, you can build these CI pipelines.
It’s now even easier to review logs from your GitHub Actions workflow runs. We’ve introduced several improvements to make the experience more performant, precise, and pleasing to use.