EndBug / add-and-commit

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

Fetch only one branch for performance issues #597

Closed brandonfl closed 9 months ago

brandonfl commented 11 months ago

Hello,

Since the fetch is taking a long time, I tryed to fetch only one branch with this configuration :

env:
  BRANCH_REF: ${{ github.event.pull_request.head.ref || github.ref_name }}

...

- name: Push Changes
  uses: EndBug/add-and-commit@v9.1.3
  with:
    author_name: ...
    author_email: ...
    message: '...'
    fetch: origin ${{ env.BRANCH_REF }} --force

But this seems to still fetch all the repo, any idea ?

Thanks in advance, Regards, BrandonFL

EndBug commented 11 months ago

Hi, can you provide a link to the action run and the logs, so that I can see what's happening?

github-actions[bot] commented 10 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

brandonfl commented 10 months ago

Hey,

I can not share the logs (private) but will make a demo project when I get some time :smile:

Regards, BrandonFL

github-actions[bot] commented 10 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.