
Description
I can not find an option (a clean one) that allows to set the Server URL or Api Url and they seem to be hardcoded to github.com.
Prepare publishing assets
[INFO] ForceOrphan: false
/usr/bin/git clone --depth=1 --single-branch --branch gh-pages ***github.com/coresystemsFSM/blog.git /home/runners/actions_github_pages_1615224725805
Cloning into '/home/runners/actions_github_pages_1615224725805'...
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/coresystemsFSM/blog.git/'
This fails because our repo is at https://github.tools.sap/coresystemsFSM/blog
As we want to use your action with GitHub Enterprise we would need to be able to customise those.
Link to your contents
I see one entry here but I think its unused during a workflow.
Line 36 in c1c219f
Additional context
I would contribute a PR if you give me 1-2 pointers where I'd need to add things in your structure.
Activity
[-]sample_title[/-][+]Github Enterprise Compatibility [/+]peaceiris commentedon Mar 8, 2021
Since I have no environment of GitHub Enterprise Server, I was looking forward to this issue, thanks!
actions-gh-pages/src/set-tokens.ts
Line 66 in a0db9b6
We can modify the function
setGithubToken
to get a server domain fromprocess.env['GITHUB_SERVER_URL']
.peaceiris commentedon Mar 8, 2021
Those are also helpful for us.
mambax commentedon Mar 8, 2021
Should we read the ENV variable or should it be handed into the action by an
input
?I can PR both, what is the better design - I am a novice!?
peaceiris commentedon Mar 8, 2021
The former is the best because
GITHUB_SERVER_URL
can provide a URL of a company's GitHub Enterprise Server.mambax commentedon Mar 9, 2021
On it, expect PR 🔄
feat: Add GHES support 🏢 (#580)
11 remaining items