Skip to content

Commit

Permalink
♻️ Split link check into separate workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
CollierCZ committed Feb 24, 2022
1 parent e556fba commit bac9c1e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 12 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/check-links.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# This is called after the deployed environment is ready to be checked
name: Check links
on:
workflow_call:
inputs:
env_url:
required: true
type: string

jobs:
comment:
runs-on: ubuntu-latest
steps:

- name: Check links
uses: ruzickap/action-my-broken-link-checker@v2
with:
url: ${{ inputs.env_url }}
cmd_params: '--buffer-size=8192 --max-connections-per-host=10 --color=always --header="User-Agent:curl/7.54.0" --rate-limit=10'
16 changes: 4 additions & 12 deletions .github/workflows/get-pr-info.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,16 +143,8 @@ jobs:
environment_url.txt
pr_comment.txt
pr_number.txt
check-links:
runs-on: ubuntu-latest
name: Check links
needs: get_pr_info
if: needs.get_pr_info.outputs.commit_status == 'success'
steps:

- name: Check links
uses: ruzickap/action-my-broken-link-checker@v2
- name: Call check links
uses: platformsh/platformsh-docs/.github/workflows/check-links.yaml@add-linkcheck
with:
url: ${{ needs.get_pr_info.outputs.env_url }}
cmd_params: '--buffer-size=8192 --color=always --header="User-Agent:curl/7.54.0" --rate-limit=1'
env_url: ${{ steps.get_env_url.outputs.env_url }}

0 comments on commit bac9c1e

Please sign in to comment.