Skip to content

Commit

Permalink
Merge pull request #4 from rajbos/rajbos-api-url
Browse files Browse the repository at this point in the history
Support GHES. Fixes #3
  • Loading branch information
LasyIsLazy authored Aug 18, 2021
2 parents 20142a0 + 1f55be1 commit f1cb99f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@
*/
const axios = require('axios')
const path = require('path')
const BASE_URL = 'https://api.github.com'
const core = require('@actions/core')

async function upload(
base64Content,
{ Authorization, remotePath, username, repo, commitMessage }
) {

// load api url from context
let BASE_URL = process.env.GITHUB_API_URL
core.debug(`Using API url: ${BASE_URL}`)

const url =
BASE_URL +
Expand Down

0 comments on commit f1cb99f

Please sign in to comment.