GitHub integration
With the Apify integration for GitHub, you can create an Actor from a public or private repository, rebuild it automatically on every push, and trigger workflows in your repo when an Actor run fails, succeeds, or times out.
To run automated tests and multi-branch builds with GitHub Actions, see Continuous integration for Actors.
Create an Actor from a GitHub repository
During the Actor creation process, you can either let Apify create a repository or link an existing one.
Before you start
To use the GitHub integration, you need:
- An Apify account.
- A GitHub account with access to the repository you want to link, or permission to create repositories in the target organization.
Create a repository from a template
To create a repository from a template using Apify Console:
- Log in to Apify Console.
- In the left-side panel, go to Development > My Actors.
- Select Develop new, then Get started.
- Choose the project type, preferred language, and an Actor template.
- In the Where do you want to host your code? step, select GitHub. Follow the prompts on github.com to authorize Apify. You can grant access to your personal account, an organization, or specific repositories.
- Choose the organization that owns the new repository, enter a repository name, and select Create Actor.
Once done, Apify creates a private GitHub repository with the boilerplate code and links the Actor's source to that repository.
Link an existing repository
To link your new Actor with an existing GitHub repository:
-
Log in to Apify Console.
-
In the left-side panel, go to Development > My Actors.
-
Select Develop new, then Connect Git.
-
In the Select Git provider step, select GitHub. Follow the prompts on github.com to authorize Apify. You can grant access to your personal account, an organization, or specific repositories.