# `toolchain.ci_file_exists`

You ran `jadpo ci init` in a project that already has the CI file it writes.

Area 14, [Tools](/docs/tooling.md); not declinable; the next step is usually the human's.

## Why Jadpo refuses it

The file `jadpo ci init` writes is the project's once it is written: you
may have added a job that deploys beside it, or changed when it runs.
Writing it again would lose that, so the command leaves the file as it is
and writes nothing.

`jadpo new` writes GitHub's workflow itself, so a project it started
already has `.github/workflows/jadpo.yml`.

## What it looks like

The project already has GitHub's workflow:


```sh
jadpo ci init github
jadpo ci init github
```

```text
Wrote .github/workflows/jadpo.yml
    runs  jadpo ci on every push and pull request

next: git add .github/workflows/jadpo.yml  GitHub runs it from the next push
error: `.github/workflows/jadpo.yml` is already there
  reason: The file is the project's once it is written, so `jadpo ci init` doesn't replace it. It wrote nothing.
  next: Keep the file and change it yourself, or remove it and run `jadpo ci init github` again (human)
  rule: toolchain.ci_file_exists
  help: https://jadpo.dev/docs/errors/toolchain.ci_file_exists
```

`(human)` at the end of the `next:` line tells your coding agent to stop
and ask you which fix you want, because the choice is yours to make: the
file may hold changes of yours that writing it again would lose.

## How to fix it

**If the file has changes you want**, keep it, and commit it as it is:

```sh
git add .github/workflows/jadpo.yml
```

It runs `jadpo ci`, which holds the steps, so a new release of Jadpo
needs no change to it.

**If you want the file as Jadpo writes it**, remove it, then write it
again:

```sh
rm .github/workflows/jadpo.yml
jadpo ci init github
```

The file is as this release of Jadpo writes it, and your changes to it
are gone.

## Related

- [Generated CI](/docs/tools-for-agents.md#generated-ci)
- [`jadpo ci`](/docs/building-running-and-ci.md#jadpo-ci)
