Skip to content

Commit 176037f

Browse files
authored
run on self-hosted conditionally (#17466)
1 parent 852a8cd commit 176037f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/link-check-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
jobs:
88
see_if_should_skip:
99
continue-on-error: true
10-
runs-on: self-hosted
10+
runs-on: ubuntu-latest
1111
# Map a step output to a job output
1212
outputs:
1313
should_skip: ${{ steps.skip_check.outputs.should_skip }}
@@ -20,7 +20,7 @@ jobs:
2020
paths: '[".github/workflows/link-check-test.yml", "assets/**", "content/**", "data/**", "includes/**", "javascripts/**", "jest-puppeteer.config.js", "jest.config.js", "layouts/**", "lib/**", "middleware/**", "package-lock.json", "package.json", "server.js", "translations/**", "webpack.config.js"]'
2121
build:
2222
needs: see_if_should_skip
23-
runs-on: self-hosted
23+
runs-on: ${{ fromJSON('["ubuntu-latest", "self-hosted"]')[github.repository == 'github/docs-internal'] }}
2424
steps:
2525
# Each of these ifs needs to be repeated at each step to make sure the required check still runs
2626
# Even if if doesn't do anything

0 commit comments

Comments
 (0)