How to Convert GitHub Actions to CircleCI - Step by Step Guide
Input Your GitHub Actions Workflow
Start with your existing GitHub Actions workflow. Maybe you are moving to CircleCI, or you just want to see what the same build looks like there:
Example: GitHub Actions Workflow
name: CI Pipeline
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- run: npm ci
- run: npm run build
test:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v4
- run: npm testWhat the Converter Changes
The config appears a moment after you stop typing. This is how the parts of a workflow line up with a CircleCI config.yml:
Example: the Same Workflow as config.yml
The comment block at the top of the real output (here, a note about the pull_request trigger) is left out.
version: 2.1
jobs:
build:
machine:
image: ubuntu-2204:current
steps:
- checkout
- run:
name: Use Node.js 20
command: |-
nvm install 20
nvm alias default 20
- run:
command: npm ci
- run:
command: npm run build
test:
machine:
image: ubuntu-2204:current
steps:
- checkout
- run:
command: npm test
workflows:
ci-pipeline:
jobs:
- build
- test:
requires:
- buildReview the Notes
When something can't be carried over, the comment block at the top of the config names it. The usual items:
Set It Up in CircleCI
.circleci/ folder at the root of your repository.Frequently Asked Questions
What carries over, and what do I have to finish myself?
Every job becomes a CircleCI job and needs becomes requires. A matrix becomes job parameters plus a matrix in the workflow, push branch and tag filters become workflow filters, and cron schedules become a scheduled workflow. Checkout, setup-node, setup-python, cache, upload-artifact and download-artifact turn into CircleCI steps, and services start as Docker containers. Marketplace actions, GitHub environments, job outputs, reusable workflows and conditions that have no CircleCI form are listed in a comment block at the top of the file, each with the job and step it came from.
Which executor does each job get?
Ubuntu runners become the machine executor with the ubuntu-2204:current image, which is a full VM with Docker, nvm and pyenv, so it behaves much like a GitHub-hosted runner. A job with container: runs on the Docker executor with that image, and its services become extra images in the same job. Windows and macOS runners get CircleCI's Windows and macOS executors; those need a paid plan.
How are GitHub secrets and expressions handled?
A reference like ${{ secrets.NPM_TOKEN }} becomes ${NPM_TOKEN} in the command, and the notes remind you to create NPM_TOKEN under Project Settings > Environment Variables or in a context. ${{ github.sha }} becomes ${CIRCLE_SHA1}, ${{ matrix.node }} becomes << parameters.node >>, and workflow_dispatch inputs become pipeline parameters. CircleCI does not expand variables inside environment:, so an env value that reads a secret is exported at the top of the step's command instead.
Will values like long IDs, zip codes or dates change?
No. Env values and script text keep the exact characters you typed, so 8901240544102066246, 00501, 14.50, yes and 2024-01-15 come out unchanged. Values a YAML reader could turn into a number, boolean or date are quoted in config.yml so they stay text.
Why does a pull_request trigger not show up in the config?
CircleCI has no pull request event in config.yml. It builds every branch you push, which already covers the branch behind a pull request. If the workflow had both push and pull_request, the push branch filter is left out so pull request branches still get built; the project setting "Only build pull requests" is the CircleCI way to cut down extra builds.
Why is the save_cache step at the end of the job?
GitHub's cache action restores the cache where the step sits and saves it after the job finishes. CircleCI splits that into restore_cache and save_cache, so restore_cache stays in place and save_cache goes after your last step, once the dependencies are installed. hashFiles() becomes {{ checksum "file" }}, which reads a single file.
Is my workflow uploaded anywhere?
No. The conversion happens in your browser; nothing is sent to a server or kept, and a reload brings back an empty editor.
Going the other way? The CircleCI to GitHub Actions converter does the reverse, and there are converters from GitLab CI and Jenkins to GitHub Actions too.
Related Tools
Jenkins to GitHub Actions
Convert Jenkins pipelines (Jenkinsfile) to GitHub Actions workflows — stages, parallel stages, when-conditions, post blocks and environment become jobs and steps, and anything it can't convert is listed in notes
GitLab CI to GitHub Actions
Convert GitLab CI/CD pipelines to GitHub Actions workflows with jobs, artifacts, and variables
CI/CD Pipeline Fixer
Fix broken CI/CD pipeline configurations automatically, repair GitHub Actions, GitLab CI, Jenkins, and Azure Pipelines YAML errors
CircleCI to GitHub Actions
Convert CircleCI config.yml to GitHub Actions workflows with jobs, caching, and artifacts
Azure Pipelines to GitHub Actions
Convert Azure Pipelines YAML to GitHub Actions workflows with jobs, tasks, and stages
Travis CI to GitHub Actions
Convert .travis.yml to GitHub Actions workflows with language support, caching, and lifecycle hooks