Skip to content

"Error: Error: Could not read from remote repository." with @v9 #450

@vitalyk-multinarity

Description

@vitalyk-multinarity

Describe the bug
"Error: Error: Could not read from remote repository" error using @v9

The same flow works with v7.5.0

Note: with checkout@v3 I'm using PAT instead of default token.

Similar to #199
Workflow used

 - name: Update  plugins  
      uses: EndBug/add-and-commit@v9
      with:
        add: 'my_path'
        message: 'CI: Updating control-*.aar [skip ci]'
        pull: 'NO-PULL'    

Expected behavior
git add / git commit / git push

Logs
Either provide a link to the action run or (if your repo is private) paste here the logs from the step that uses it. If you paste the logs, please use this template, and remember to paste the logs from all the different sections.

Logs
Run EndBug/add-and-commit@v9
  with:
    add: my-peth
    message: CI: Updating control*.aar [skip ci]
    pull: NO-PULL
    cwd: .
    default_author: github_actor
    fetch: --tags --force
    pathspec_error_handling: ignore
    push: true
    github_token: ***
  env:
    JAVA_HOME: /opt/hostedtoolcache/Java_Zulu_jdk/8.0.35[2](https://github.com/multinarity/SpaceTop-Unity/actions/runs/3361537012/jobs/5572055054#step:12:2)-8/x64
    JAVA_HOME_8_X64: /opt/hostedtoolcache/Java_Zulu_jdk/8.0.[3](https://github.com/multinarity/SpaceTop-Unity/actions/runs/3361537012/jobs/5572055054#step:12:3)52-8/x6[4](https://github.com/multinarity/SpaceTop-Unity/actions/runs/3361537012/jobs/5572055054#step:12:4)
Running in /home/runner/work/my-repo/my-repo
Add input parsed as single string, running 1 git add command.
> Using 'vitalyk' as author.
> Using "CI: Updating control-*.aar [skip ci]" as commit message.
Internal logs
  > Staging files...
  > Adding files...
  > No files to remove.
  > Checking for uncommitted changes in the git working tree...
  > Found 2 changed files.
  > Fetching repo...
  { raw: '', remote: null, branches: [], tags: [] }
  > Pulling from remote...
  { raw: '', remote: null, branches: [], tags: [] }
  Error: Error: Could not read from remote repository.
Outputs
  committed: false
  commit_long_sha: undefined
  commit_sha: undefined
  pushed: false
  tagged: false
  tag_pushed: false
Error: Error: Could not read from remote repository.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: pendingMore info is needed before deciding what to do

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions