diff --git a/.github/workflows/check-all-english-links.yml b/.github/workflows/check-all-english-links.yml index 060a861b9726..13b4305a62cd 100644 --- a/.github/workflows/check-all-english-links.yml +++ b/.github/workflows/check-all-english-links.yml @@ -1,6 +1,7 @@ name: Check all English links on: + workflow_dispatch: schedule: - cron: "40 19 * * *" # once a day at 19:40 UTC / 11:40 PST @@ -10,21 +11,16 @@ jobs: if: github.repository == 'github/docs-internal' runs-on: ubuntu-latest steps: - - uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f - - name: npm ci - run: npm ci - - name: npm run build - run: npm run build - name: Run script - run: script/check-external-links en > broken_links.md + run: script/check-english-links.js > broken_links.md - name: Check if any broken links id: check run: | - if [ "$(grep 'All links are good' broken_links.md)" ]; then + if [ "$(grep '0 broken links found' broken_links.md)" ]; then echo ::set-output name=continue::no else echo "::set-output name=continue::yes" - echo "::set-output name=title::$(grep 'found on help.github.com' broken_links.md)" + echo "::set-output name=title::$(head -1 broken_links.md)" fi - if: ${{ steps.check.outputs.continue == 'yes' }} name: Create issue from file diff --git a/.gitignore b/.gitignore index e7bc933f8e81..44c66526adf1 100644 --- a/.gitignore +++ b/.gitignore @@ -4,8 +4,6 @@ node_modules npm-debug.log coverage - -# blc: broken link checker -blc_output.log -blc_output_internal.log -dist \ No newline at end of file +.linkinator +broken_links.md +dist diff --git a/content/actions/index.md b/content/actions/index.md index 49ed125257d6..44ba757b9213 100644 --- a/content/actions/index.md +++ b/content/actions/index.md @@ -7,7 +7,8 @@ introLinks: reference: /actions/reference featuredLinks: guides: - - /actions/guides/setting-up-continuous-integration-using-workflow-templates + - /actions/learn-github-actions + - /actions/guides/about-continuous-integration - /actions/guides/about-packaging-with-github-actions gettingStarted: - /actions/managing-workflow-runs @@ -15,6 +16,10 @@ featuredLinks: popular: - /actions/reference/workflow-syntax-for-github-actions - /actions/reference/events-that-trigger-workflows + - /actions/learn-github-actions + - /actions/reference/context-and-expression-syntax-for-github-actions + - /actions/reference/workflow-commands-for-github-actions + - /actions/reference/environment-variables changelog: - title: Self-Hosted Runner Group Access Changes date: '2020-10-16' diff --git a/layouts/product-landing.html b/layouts/product-landing.html index 32a8af6fe56a..91c2d11fbb28 100644 --- a/layouts/product-landing.html +++ b/layouts/product-landing.html @@ -28,41 +28,51 @@

{{ page.shortTitle }}

-
-
-