Skip to content

autofix-ci/action failed due to fatal: couldn't find remote ref refs/pull/*/head #23

Open
@suzuki-shunsuke

Description

@suzuki-shunsuke

autofix-ci/action failed due to fatal: couldn't find remote ref refs/pull/*/head in some pull requests created by Renovate.

https://github.com/lintnet/lintnet.github.io/actions/runs/14117851840/job/39552170367?pr=673

- uses: autofix-ci/action@2891949f3779a1cafafae1523058501de3d4e944 # v1.3.1
/usr/bin/git fetch --depth=1 origin +refs/pull/673/head
fatal: couldn't find remote ref refs/pull/673/head
Error: The process '/usr/bin/git' failed with exit code 128

I'm looking into the cause.
Before running autofix-ci/action, actions/checkout was run.

https://github.com/lintnet/lintnet.github.io/blob/134d2749e35f92bdb7159e782dad6cf24af2d688/.github/workflows/autofix.yaml#L11-L13

So I think refs/pull/*/head should have been fetched, but actually git fetch failed due to fatal: couldn't find remote ref refs/pull/*/head.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions