Skip to content

Commit 6b0ee99

Browse files
Add option to set CircleCI domain (#78)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent 054fea2 commit 6b0ee99

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

action.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff 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'
2333
outputs:
2434
url:
2535
description: 'The full redirect URL'

dist/index.js

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

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)