Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

link-check-ghes.yml 2.3 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
  1. name: 'Link Checker: Enterprise Server'
  2. on:
  3. workflow_dispatch:
  4. push:
  5. branches:
  6. - main
  7. pull_request:
  8. jobs:
  9. see_if_should_skip:
  10. continue-on-error: true
  11. runs-on: ubuntu-latest
  12. # Map a step output to a job output
  13. outputs:
  14. should_skip: ${{ steps.skip_check.outputs.should_skip }}
  15. steps:
  16. - id: skip_check
  17. uses: fkirc/skip-duplicate-actions@36feb0d8d062137530c2e00bd278d138fe191289
  18. with:
  19. cancel_others: 'false'
  20. github_token: ${{ github.token }}
  21. paths: '[".github/workflows/link-check-ghes.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"]'
  22. build:
  23. needs: see_if_should_skip
  24. runs-on: ${{ fromJSON('["ubuntu-latest", "self-hosted"]')[github.repository == 'github/docs-internal'] }}
  25. steps:
  26. # Each of these ifs needs to be repeated at each step to make sure the required check still runs
  27. # Even if if doesn't do anything
  28. - if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
  29. name: Checkout
  30. uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
  31. - if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
  32. name: Setup node
  33. uses: actions/setup-node@c46424eee26de4078d34105d3de3cc4992202b1e
  34. with:
  35. node-version: 14.x
  36. - if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
  37. name: Install
  38. run: npm ci
  39. ## TODO
  40. # - if: ${{ github.repository == 'github/docs-internal' && needs.see_if_should_skip.outputs.should_skip != 'true' }}
  41. # name: Clone early access
  42. # run: npm run heroku-postbuild
  43. # env:
  44. # DOCUBOT_REPO_PAT: ${{ secrets.DOCUBOT_REPO_PAT }}
  45. # GIT_BRANCH: ${{ github.ref }}
  46. - if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
  47. name: Build
  48. run: npm run build
  49. - if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
  50. name: 'Link check: Enterprise Server'
  51. env:
  52. DOCS_VERSION: 'enterprise-server'
  53. run: npm run link-check
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...