Skip to content

Link Checker

Link Checker #6873

name: Link Checker
on:
workflow_dispatch:
inputs:
deployment:
description: 'Select the deployment to check links in'
required: true
default: 'ballerina.io'
type: choice
options:
- ballerina.io
- pre-prod.ballerina.io
- lib.ballerina.io
- staging-lib.ballerina.io
- dev-lib.ballerina.io
- blog.ballerina.io
jobs:
linkChecker:
runs-on: ubuntu-latest
steps:
- name: Setup node
uses: actions/setup-node@v3
- name: Run link checker
env:
DEPLOYMENT: ${{ inputs.deployment }}
run: |
npm install --global @deptagency/octopus
URL=https://$DEPLOYMENT/
echo "Checking links in $URL"
octopus $URL