# Error with CompatHelper - Error Code 1

**URL:** https://discourse.julialang.org/t/error-with-compathelper-error-code-1/68446
**Category:** Package Management
**Tags:** compatibility, github-actions, compathelper
**Created:** [September 20, 2021, 9:03am UTC](https://discourse.julialang.org/t/error-with-compathelper-error-code-1/68446 "2021-09-20T09:03:34Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![tiago](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tiago/32/22567_2.png) [@tiago](https://discourse.julialang.org/u/tiago)
#### Post date: [September 20, 2021, 9:03am UTC](https://discourse.julialang.org/t/error-with-compathelper-error-code-1/68446/1 "2021-09-20T09:03:34Z")

</div>

Hello,  
I developed a [package](https://github.com/tiagoseq/NeuralFieldEq.jl) and I’m having issues with the CompatHelper. Recently I’ve changed my CI to GitHub Actions and noticed that the CompatHelper jobs are failing:  
 ![image](https://global.discourse-cdn.com/julialang/original/3X/5/1/51a6f352089114994885545e4263253083e671f4.png)

I don’t know if this is connected with my new ci.yml script or with if I need to change the CompatHelper script, or with something that is escaping me somewhat 🤔.  
Nevertheless, here are my `CompatHelper.yml` and the `ci.yml` scripts:

```julia
name: CompatHelper
on:
  schedule:
    - cron: 0 0 * * *
  workflow_dispatch:
jobs:
  CompatHelper:
    runs-on: ubuntu-latest
    steps:
      - name: Pkg.add("CompatHelper")
        run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
      - name: CompatHelper.main()
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}
        run: julia -e 'using CompatHelper; CompatHelper.main()'

```

And the CI script (copied from [here](https://discourse.julialang.org/t/easy-workflow-file-for-setting-up-github-actions-ci-for-your-julia-package/49765)):

```julia
name: CI
on:
  pull_request:
    branches:
      - master
  push:
    branches:
      - master
    tags: '*'
jobs:
  test:
    name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      matrix:
        version:
          - '1.5' # Replace this with the minimum Julia version that your package supports. E.g. if your package requires Julia 1.5 or higher, change this to '1.5'.
          - '1' # Leave this line unchanged. '1' will automatically expand to the latest stable 1.x release of Julia.
          - 'nightly'
        os:
          - ubuntu-latest
        arch:
          - x64
    steps:
      - uses: actions/checkout@v2
      - uses: julia-actions/setup-julia@v1
        with:
          version: ${{ matrix.version }}
          arch: ${{ matrix.arch }}
      - uses: actions/cache@v1
        env:
          cache-name: cache-artifacts
        with:
          path: ~/.julia/artifacts
          key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
          restore-keys: |
            ${{ runner.os }}-test-${{ env.cache-name }}-
            ${{ runner.os }}-test-
            ${{ runner.os }}-
      - uses: julia-actions/julia-buildpkg@v1
      - uses: julia-actions/julia-runtest@v1
      - uses: julia-actions/julia-processcoverage@v1
      - uses: codecov/codecov-action@v1
        with:
          file: lcov.info

```

Any help is appreciated, thanks!  
Tiago

---

<div class="post-metadata">

### Author: ![dilumaluthge](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dilumaluthge/32/29283_2.png) [@dilumaluthge](https://discourse.julialang.org/u/dilumaluthge)
#### Post date: [September 20, 2021, 9:12am UTC](https://discourse.julialang.org/t/error-with-compathelper-error-code-1/68446/2 "2021-09-20T09:12:52Z")

</div>

Try using the latest CompatHelper workflow file: [https://github.com/JuliaRegistries/CompatHelper.jl/blob/master/.github/workflows/CompatHelper.yml](https://github.com/JuliaRegistries/CompatHelper.jl/blob/master/.github/workflows/CompatHelper.yml)

---

<div class="post-metadata">

### Author: ![tiago](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tiago/32/22567_2.png) [@tiago](https://discourse.julialang.org/u/tiago)
#### Post date: [September 20, 2021, 11:26am UTC](https://discourse.julialang.org/t/error-with-compathelper-error-code-1/68446/3 "2021-09-20T11:26:07Z")

</div>

Thank you! It worked!! 😃
