Loading GitHub Actions to CircleCI Converter...

How to Convert GitHub Actions to CircleCI - Step by Step Guide

Step 1

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:

•
Paste directly: Copy a workflow from .github/workflows/ into the editor.
•
Upload file: Click "Upload" and pick the .yml file.
•
Try sample: Click "Sample" to load a two-job example with a cache and an artifact.

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 test
Step 2

What 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:

•
Jobs: Each job keeps its name (cleaned up if CircleCI wouldn't accept it) and needs becomes requires in the workflow.
•
Executors: Ubuntu runners become the machine executor, container: jobs the Docker executor, and services start as containers next to the job.
•
Actions: checkout, setup-node, setup-python, cache, upload-artifact and download-artifact become CircleCI steps. Other actions become placeholder steps named in the notes.
•
Triggers: push branch and tag filters become workflow filters, and cron schedules a scheduled workflow.
•
Matrix: strategy.matrix becomes job parameters plus a matrix on the workflow job, and ${{ matrix.x }} becomes << parameters.x >>.

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:
            - build
Step 3

Review the Notes

When something can't be carried over, the comment block at the top of the config names it. The usual items:

•
Secrets: Add each secret the workflow used as a project environment variable or in a context.
•
Marketplace actions: Replace the placeholder steps with a script or one of the CircleCI orbs.
•
Runner variables: Scripts that read $GITHUB_SHA or write to $GITHUB_ENV need the CircleCI names, which the notes list.
•
Executors: If a job needs a specific language version, a Docker image such as cimg/node can be quicker to start than the machine executor.
Step 4

Set It Up in CircleCI

•
Download: Click "Download" to save config.yml.
•
Commit: Put it in a .circleci/ folder at the root of your repository.
•
Connect: Add the repository as a project in the CircleCI app.
•
Run: Push a commit and compare the first run with the GitHub one.

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.