Skip to content

pathspec 'changeset-release/main' did not match any file(s) known to git #344

Description

@Lauweal

I encountered this problem when I published, causing the pipeline to fail
image

Activity

  1. Murderlon commented on Feb 5, 2024

    @Murderlon

    Did you manage to fix this somehow? Running into this.

  2. AgataJedryszek-da commented on Apr 5, 2024

    @AgataJedryszek-da

    I got this when GitHub was down, rerunning later fixed the issue.

  3. LilyLoveLife commented on Apr 30, 2024

    @LilyLoveLife

    I got the same error.
    截屏2024-04-30 14 03 35

  4. MartinPlayon commented on Jul 18, 2024

    @MartinPlayon

    I have also been encountering the same error since yesterday. Nothing has changed, so I am not sure what has changed in to help diagnose. The same script has been running with no problem for the past 8 months.
    github error

  5. MartinPlayon commented on Aug 7, 2024

    @MartinPlayon

    This issue happened for a day, then disappeared, and happened again today. I have made no changes to the project that could be a hint of this issue. I think it's either a GitHub action or a Changeset Actions issue.

  6. Murderlon commented on Aug 8, 2024

    @Murderlon

    Are you sure you are running the action on both PRs and on main?

  7. amritk commented on Feb 19, 2026

    @amritk

    Getting it every other deploy as well! Very strange

  8. bluwy commented on May 15, 2026

    @bluwy
    Member

    That should not be the problem. It's logged when creating the branch for the first time because an existing one doesn't exist.

    action/src/git.ts

    Lines 19 to 28 in 04ba326

    let { stderr } = await getExecOutput("git", ["checkout", branch], {
    ignoreReturnCode: true,
    ...options,
    });
    let isCreatingBranch = !stderr
    .toString()
    .includes(`Switched to a new branch '${branch}'`);
    if (isCreatingBranch) {
    await exec("git", ["checkout", "-b", branch], options);
    }

    It seems like the errors reported here stemmed from different issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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