File tree Expand file tree Collapse file tree 3 files changed +16
-0
lines changed
Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,16 @@ inputs:
2020 job-title :
2121 description : ' The name of the job, as it will render on the PR GUI (default is "<name of CI job> artifact)"'
2222 required : false
23+ domain :
24+ description : |
25+ The domain on which CircleCI artifacts are hosted. Defaults to
26+ output.circle-artifacts.com.
27+
28+ Can, e.g., be set to use the Scientific Python CircleCI
29+ proxy (https://github.com/scientific-python/circleci-proxy),
30+ which addresses some routing issues.
31+ required : false
32+ default : ' output.circle-artifacts.com'
2333outputs :
2434 url :
2535 description : ' The full redirect URL'
Original file line number Diff line number Diff line change @@ -35154,6 +35154,9 @@ async function run() {
3515435154 else {
3515535155 url = payload.target_url;
3515635156 }
35157+ // Set root domain
35158+ var domain = core.getInput('domain')
35159+ url = `https://${domain}/output/${url.split('/output/')[1]}`
3515735160 core.debug(`Linking to: ${url}`)
3515835161 core.debug((new Date()).toTimeString())
3515935162 core.setOutput("url", url)
Original file line number Diff line number Diff line change @@ -66,6 +66,9 @@ async function run() {
6666 else {
6767 url = payload . target_url ;
6868 }
69+ // Set root domain
70+ var domain = core . getInput ( 'domain' )
71+ url = `https://${ domain } /output/${ url . split ( '/output/' ) [ 1 ] } `
6972 core . debug ( `Linking to: ${ url } ` )
7073 core . debug ( ( new Date ( ) ) . toTimeString ( ) )
7174 core . setOutput ( "url" , url )
You can’t perform that action at this time.
0 commit comments