Is there a way to trigger a Github action on an external event (e.g. a resource from an URL was updated)?
There is a webhook event called repository_dispatch when you want to trigger a workflow for activity that happens outside of GitHub. You can use the GitHub API to Create a repository dispatch event. In your workflow, add
For more information, you could refer to https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows#external-events-repository_dispatch