Skip to content

fatal: not a valid object name: '4.0.x' #241

@Spomky

Description

@Spomky

Bug Report

Q A
Version(s) 1.24.0

Summary

Job is failing: https://github.com/web-token/jwt-framework/actions/runs/5016108869/jobs/8992552443
Previous executions were fine: https://github.com/web-token/jwt-framework/actions/runs/4392789931/jobs/7692769201
No changes in the Github Action file.
I cannot find what is missing.

Current behavior

Github Action fails with the following error code and detail.

In execute.php line 180:
                                                                               
  [Psl\Shell\Exception\FailedExecutionException (128)]                         
  Shell command "exec git 'branch' 'temporary-branchHVM4BAIn' '4.0.x'" return  
  ed an exit code of "128".                                                    
                                                                               
  STDOUT:                                                                      
                                                                               
                                                                               
  STDERR:                                                                      
      fatal: not a valid object name: '4.0.x'                                  
                                                                               

Exception trace:
  at /app/vendor/azjezz/psl/src/Psl/Shell/execute.php:180
 Psl\Shell\execute() at /app/src/Git/PushViaConsole.php:25
 Laminas\AutomaticReleases\Git\PushViaConsole->__invoke() at /app/src/Application/Command/SwitchDefaultBranchToNextMinor.php:61
 Laminas\AutomaticReleases\Application\Command\SwitchDefaultBranchToNextMinor->execute() at /app/vendor/symfony/console/Command/Command.php:312
 Symfony\Component\Console\Command\Command->run() at /app/vendor/symfony/console/Application.php:1022
 Symfony\Component\Console\Application->doRunCommand() at /app/vendor/symfony/console/Application.php:3[14](https://github.com/web-token/jwt-framework/actions/runs/5016108869/jobs/8992552443#step:6:15)
 Symfony\Component\Console\Application->doRun() at /app/vendor/symfony/console/Application.php:[16](https://github.com/web-token/jwt-framework/actions/runs/5016108869/jobs/8992552443#step:6:17)8
 Symfony\Component\Console\Application->run() at /app/bin/console.php:[18](https://github.com/web-token/jwt-framework/actions/runs/5016108869/jobs/8992552443#step:6:19)0
 Laminas\AutomaticReleases\WebApplication\{closure}() at /app/bin/console.php:181

laminas:automatic-releases:switch-default-branch-to-next-minor

How to reproduce

The error is issued during normal Github Action call.

Expected behavior

The branch '4.0.x' already exists. It is expected for the action to correctly find it and continue its execution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions