ad-m / github-push-action

GitHub actions to push back to repository eg. updated code
MIT License
1.21k stars 230 forks source link

Add GitHub Enterprise support #106

Closed ZPascal closed 2 years ago

ZPascal commented 2 years ago

Hi @ad-m, I've modified the push action a bit to specify the used GitHub URL and make it possible to support GitHub Enterprise instances.

Regards,

ZPascal

ad-m commented 2 years ago

I don't have access to GitHub Enterprise, so I merge as is and I hope that it works. Could you verify by testing uses: ad-m/git-push-action@master?

ZPascal commented 2 years ago

@ad-m Sure, I can test it.

ad-m commented 2 years ago

I reversed that PR as it break build. https://github.com/ad-m/github-push-action/runs/5245447913?check_suite_focus=true Feel free to resubmit after fixing that build.

Should we use github.api_url? See https://docs.github.com/en/actions/learn-github-actions/contexts#github-context

jackton1 commented 2 years ago

@ad-m does the test also run on PR’s from forks ?

We might’ve caught this earlier.