Skip to content

Update-project-version is incompatible with checkout/v6 #55

@bkeryan

Description

@bkeryan

Bug Report

ni/python-actions/update-project-version fails with HTTP 400 bad request.

Repro or Code Sample

https://github.com/ni/nitypes-python/actions/runs/20113910803/job/57718596097

2s
Run ni/python-actions/update-project-version@9768589f3e50672173dad75a6fc181e4a85d33fa
Run # For release events, github.ref_name is the release tag (e.g. 1.0.0) and
Run python /home/runner/work/_actions/ni/python-actions/9768589f3e50672173dad75a6fc181e4a85d33fa/update-project-version/update_version.py patch --dev
Bumping version from 1.1.0.dev1 to 1.1.0.dev2
Run import pathlib, os, subprocess
Run peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e
Prepare git configuration
Determining the base and head repositories
Pull request branch target repository set to ni/nitypes-python
Configuring credential for HTTPS authentication
Checking the base repository state
  /usr/bin/git symbolic-ref HEAD --short
  fatal: ref HEAD is not a symbolic ref
  /usr/bin/git rev-parse HEAD
  0108c3503b34587b48649e8dc2a9862bf90fe269
  Working base is commit '0108c3503b34587b48649e8dc2a9862bf90fe269'
  /usr/bin/git remote prune origin
  remote: Duplicate header: "Authorization"
  fatal: unable to access 'https://github.com/ni/nitypes-python/': The requested URL returned error: 400
  Error: The process '/usr/bin/git' failed with exit code 128
Restore git configuration

Expected Behavior

It works

Current Behavior

HTTP 400

Possible Solution

Update peter-evans/create-pull-request: peter-evans/create-pull-request#4228

Context

Releasing nitypes

Your Environment

  • ni/python-actions version: 9768589
  • Python version: default

AB#3609981

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions