Skip to content

Commit 1c9eeef

Browse files
committed
Add option to set CircleCI domain
1 parent 054fea2 commit 1c9eeef

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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'
2327
outputs:
2428
url:
2529
description: 'The full redirect URL'

index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)