Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add region proxy for create-job-badge action #5761

Merged
merged 20 commits into from
Sep 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/actions/create-job-status-badge/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ inputs:
description: 'If use self-hosted runner it will be true'
required: true
default: false
runner-hosted-on:
description: 'Select the region of the runner host to set the proxy'
required: true
default: ''
runs:
using: "composite"
steps:
Expand Down Expand Up @@ -47,6 +51,7 @@ runs:
label: ${{ inputs.job-name }}
message: ${{ env.JOB-STATUS }}
color: ${{ env.COLOR }}
runnerHostedOn: ${{ inputs.runner-hosted-on }}

- name: Create time badge
if: ${{ inputs.type == 'workflow' && inputs.secret != '' }}
Expand All @@ -58,6 +63,7 @@ runs:
filename: ${{ inputs.file-name }}
label: Time is
message: ${{ env.TIME }}
runnerHostedOn: ${{ inputs.runner-hosted-on }}

- name: print error message
if: ${{ inputs.secret == '' }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/license-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ jobs:
file-name: fossa-scan.json
type: job
job-name: fossa-scan
runnerHostedOn: 'America'


create-workflow-badge:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/nightly_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ jobs:
file-name: nb-scala-build.json
type: job
job-name: scala-build
runnerHostedOn: 'America'

docker-build-bigdl:
needs: scala-build
Expand Down Expand Up @@ -226,6 +227,7 @@ jobs:
file-name: nb-docker-build-bigdl.json
type: job
job-name: docker-build-bigdl
runnerHostedOn: 'America'


python-build:
Expand Down Expand Up @@ -277,6 +279,7 @@ jobs:
file-name: nb-python-build.json
type: job
job-name: python-build
runnerHostedOn: 'America'

python-sourceforge-build:
if: ${{ github.event.schedule || github.event.inputs.artifact == 'python-sourceforge-build' || github.event.inputs.artifact == 'all' }}
Expand Down Expand Up @@ -402,6 +405,7 @@ jobs:
file-name: nb-python-sourceforge-build.json
type: job
job-name: python-build-sourceforge
runnerHostedOn: 'America'

create-workflow-badge:
runs-on: ubuntu-latest
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/nightly_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ jobs:
file-name: Orca-Python-ExampleTest-Py37-Spark3.json
type: job
job-name: Orca-Python-ExampleTest-Py37-Spark3
runnerHostedOn: 'Shanghai'


Orca-Python-ExampleTest-Ray-Py37-Spark3:
Expand All @@ -76,6 +77,7 @@ jobs:
file-name: Orca-Python-ExampleTest-Ray-Py37-Spark3.json
type: job
job-name: Orca-Python-ExampleTest-Ray-Py37-Spark3
runnerHostedOn: 'Shanghai'

Orca-Jep-ExampleTest-Py37-Spark2:
if: ${{ github.event.schedule || github.event.inputs.artifact == 'Orca-Jep-ExampleTest-Py37-Spark2' || github.event.inputs.artifact == 'all' }}
Expand All @@ -99,6 +101,7 @@ jobs:
file-name: Orca-Jep-ExampleTest-Py37-Spark2.json
type: job
job-name: Orca-Jep-ExampleTest-Py37-Spark2
runnerHostedOn: 'Shanghai'

Orca-Python-Ray-Py37-Spark3:
if: ${{ github.event.schedule || github.event.inputs.artifact == 'Orca-Python-Ray-Py37-Spark3' || github.event.inputs.artifact == 'all' }}
Expand All @@ -122,6 +125,7 @@ jobs:
file-name: Orca-Python-Ray-Py37-Spark3.json
type: job
job-name: Orca-Python-Ray-Py37-Spark3
runnerHostedOn: 'Shanghai'

Orca-Python-Py37-Spark3:
if: ${{ github.event.schedule || github.event.inputs.artifact == 'Orca-Python-Py37-Spark3' || github.event.inputs.artifact == 'all' }}
Expand All @@ -145,6 +149,7 @@ jobs:
file-name: Orca-Python-Py37-Spark3.json
type: job
job-name: Orca-Python-Py37-Spark3
runnerHostedOn: 'Shanghai'

Orca-Python-Horovod-Tf2-Py37-Spark3:
if: ${{ github.event.schedule || github.event.inputs.artifact == 'Orca-Python-Horovod-Tf2-Py37-Spark3' || github.event.inputs.artifact == 'all' }}
Expand Down Expand Up @@ -173,6 +178,7 @@ jobs:
file-name: Orca-Python-Horovod-Tf2-Py37-Spark3.json
type: job
job-name: Orca-Python-Horovod-Tf2-Py37-Spark3
runnerHostedOn: 'Shanghai'


Dllib-Scala-UT:
Expand All @@ -197,6 +203,7 @@ jobs:
file-name: Dllib-Scala-UT.json
type: job
job-name: Dllib-Scala-UT
runnerHostedOn: 'Shanghai'

Friesian-Scala-UT:
if: ${{ github.event.schedule || github.event.inputs.artifact == 'Friesian-Scala-UT' || github.event.inputs.artifact == 'all' }}
Expand All @@ -220,6 +227,7 @@ jobs:
file-name: Friesian-Scala-UT.json
type: job
job-name: Friesian-Scala-UT
runnerHostedOn: 'Shanghai'

PPML-Scala-UT:
if: ${{ github.event.schedule || github.event.inputs.artifact == 'PPML-Scala-UT' || github.event.inputs.artifact == 'all' }}
Expand All @@ -243,6 +251,7 @@ jobs:
file-name: PPML-Scala-UT.json
type: job
job-name: PPML-Scala-UT
runnerHostedOn: 'Shanghai'

Orca-Ray-Ctx-Example:
if: ${{ github.event.schedule || github.event.inputs.artifact == 'Orca-Ray-Ctx-Example' || github.event.inputs.artifact == 'all' }}
Expand All @@ -266,6 +275,7 @@ jobs:
file-name: Orca-Ray-Ctx-Example.json
type: job
job-name: Orca-Ray-Ctx-Example
runnerHostedOn: 'Shanghai'


create-workflow-badge:
Expand Down