Skip to content

fatal: protocol error: bad line length character: erro #283

Discussion options

You must be logged in to vote

@rockdaboot Looking at the workflow you're currently working with, I think the issue could be related on how actions/checkout is set up.

The workflow checks out the repository in a detached state:
https://github.com/elastic/go-freelru/actions/runs/7412916522/job/20170728985#step:3:77

As no branch-option is passed to git-auto-commit, the action will push the changes to the default branch it has.

Could you add ref: ${{ github.head_ref }} to the actions/checkout step, to explicitly tell Actions, to check out the right branch.

    - uses: actions/checkout@v4
      with:
+       ref: ${{ github.head_ref }}

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@rockdaboot
Comment options

@rockdaboot
Comment options

@stefanzweifel
Comment options

Answer selected by stefanzweifel
@rockdaboot
Comment options

@stefanzweifel
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants