File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,19 @@ With configure, call it with:
8686./configure CC="sccache clang" CXX="sccache clang"
8787```
8888
89+ ## Using on GitHub Enterprise Server (GHES)
90+
91+ When using the action on GitHub Enterprise Server installations a valid GitHub.com token must be provided.
92+
93+ ```
94+ - name: Run sccache-cache
95+ uses: mozilla-actions/[email protected] 96+ with:
97+ token: ${{ secrets.MY_GITHUB_TOKEN }}
98+ ```
99+
100+ Note that using https://github.com/actions/create-github-app-token is a better option than storing a fixed token in the repo secrets.
101+
89102## Prepare a new release
90103
911041 . Update the example in README.md
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ async function setup() {
3131 if ( version . length === 0 ) {
3232 // If no version is specified, the latest version is used by default.
3333 const token = core . getInput ( 'token' , { required : true } ) ;
34- const octokit = getOctokit ( token ) ;
34+ const octokit = getOctokit ( token , { baseUrl : 'https://api.github.com' } ) ;
3535 const release = await octokit . rest . repos . getLatestRelease ( {
3636 owner : 'mozilla' ,
3737 repo : 'sccache'
You can’t perform that action at this time.
0 commit comments