EndBug / add-and-commit

:octocat: Automatically commit changes made in your workflow run directly to your repo
MIT License
1.14k stars 117 forks source link

How to get push working when another commit was pushed? #499

Closed louisabraham closed 1 year ago

louisabraham commented 1 year ago

When pushing two commits in close succession, the first task doesn't want to push because there are new commits.

Therefore I trid to pull. I tried various methods but I always get

 > Pulling from remote...
  { raw: '', remote: null, branches: [], tags: [] }
    Error: Error: Could not read from remote repository.

I have no problem pushing when the commits are rare so I think the access is well configured.

Here is my actions:

      - name: Upload pdf
        uses: EndBug/add-and-commit@v9
        with:
          add: paper/article.pdf
          message: 'Update pdf'
          author_name: ${{ github.actor }}
          author_email: ${{ github.actor }}@users.noreply.github.com
EndBug commented 1 year ago

You shouldn't be getting that error: Error: Error: Could not read from remote repository. What pull option resulted in that?

louisabraham commented 1 year ago

Oh I cannot find it in my logs without "true" as argument. I will try again.

louisabraham commented 1 year ago

Cannot reproduce.