File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,10 @@ 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 : ' The domain on which CircleCI artifacts are hosted. Defaults to output.circle-artifacts.com.'
25+ required : false
26+ default : ' output.circle-artifacts.com'
2327outputs :
2428 url :
2529 description : ' The full redirect 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