Skip to content

The initial commit

The initial commit #2

name: Documentation Validation
on:
push:
branches-ignore:
- 'dependabot/**'
paths:
- '**/*.md'
pull_request:
branches:
- '**'
paths:
- '**/*.md'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions: read-all
jobs:
get-node-version:
name: Get Latest Node Version
runs-on: ubuntu-latest
outputs:
version: ${{ steps.get-language-versions.outputs.latest-versions }}
steps:
- name: Get Required Version
uses: ActionsToolbox/get-language-versions-action@446919617fd774095b5dd3ed71c39dd3fd0d8f4f # v0.1.3
id: get-language-versions
with:
language: "node"
highest-only: true
remove-patch-version: true
get-ruby-version:
name: Get Latest Ruby Version
runs-on: ubuntu-latest
outputs:
version: ${{ steps.get-language-versions.outputs.latest-versions }}
steps:
- name: Get Required Version
uses: ActionsToolbox/get-language-versions-action@446919617fd774095b5dd3ed71c39dd3fd0d8f4f # v0.1.3
id: get-language-versions
with:
language: "ruby"
highest-only: true
remove-patch-version: true
awesomebot:
name: Awesomebot
needs: get-ruby-version
runs-on: ubuntu-latest
steps:
- name: Checkout the Repository
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- name: Setup Ruby ${{ needs.get-ruby-version.outputs.version }}
uses: ruby/setup-ruby@d5fb7a202fc07872cb44f00ba8e6197b70cb0c55 # v1.179.0
with:
ruby-version: ${{ needs.get-ruby-version.outputs.version }}
- name: Perform Awesomebot Analysis
env:
FLAGS: "default"
WHITELIST: "https://img.shields.io"
run: bash <(curl -s https://raw.githubusercontent.com/CICDToolbox/awesomebot/master/pipeline.sh)
markdown-lint:
name: Markdown Lint
needs: get-node-version
runs-on: ubuntu-latest
steps:
- name: Checkout the Repository
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- name: Setup Node ${{ needs.get-node-version.outputs.version }}
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: ${{ needs.get-node-version.outputs.version }}
- name: Perform Markdown Lint Analysis
run: bash <(curl -s https://raw.githubusercontent.com/CICDToolbox/markdown-lint/master/pipeline.sh)
env:
EXCLUDE_FILES: "README.md,CHANGELOG.md"
repository-validation-pipeline:
if: always()
name: Documentation Validation Pipeline
needs:
- awesomebot
- markdown-lint
runs-on: ubuntu-latest
steps:
- name: Checkout the Repository
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- name: Check Job Statuses
run: .github/scripts/check-jobs.sh '${{ toJson(needs) }}'