This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/checkout](https://redirect.github.com/actions/checkout) | action | major | `v4` -> `v5` | --- ### Release Notes <details> <summary>actions/checkout (actions/checkout)</summary> ### [`v5`](https://redirect.github.com/actions/checkout/compare/v4...v5) [Compare Source](https://redirect.github.com/actions/checkout/compare/v4...v5) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/libretime/libretime). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS42MC40IiwidXBkYXRlZEluVmVyIjoiNDEuNjAuNCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiY2kiLCJkZXBlbmRlbmNpZXMiXX0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
86 lines
2.0 KiB
YAML
86 lines
2.0 KiB
YAML
name: Docs
|
|
|
|
on:
|
|
push:
|
|
branches: [main, stable-*]
|
|
paths:
|
|
- .github/vale/**
|
|
- .github/workflows/docs.yml
|
|
- docs/**
|
|
|
|
pull_request:
|
|
branches: [main, stable-*]
|
|
paths:
|
|
- .github/vale/**
|
|
- .github/workflows/docs.yml
|
|
- docs/**
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
jobs:
|
|
lint:
|
|
name: Lint
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
|
|
- uses: actions/cache@v4
|
|
with:
|
|
path: |
|
|
/usr/local/bin/vale*
|
|
key: ${{ runner.os }}-docs-lint-tools
|
|
restore-keys: |
|
|
${{ runner.os }}-docs-lint-tools
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "22"
|
|
|
|
- name: Install dependencies
|
|
run: npm install -g mdx2vast
|
|
|
|
- name: Install Vale
|
|
run: |
|
|
python -m venv venv && source venv/bin/activate
|
|
pip install gh-release-install
|
|
|
|
sudo venv/bin/gh-release-install \
|
|
errata-ai/vale \
|
|
vale_{version}_Linux_64-bit.tar.gz --extract vale \
|
|
/usr/local/bin/vale \
|
|
--version v3.11.2 \
|
|
--version-file '{destination}.version'
|
|
|
|
- name: Add annotations matchers
|
|
run: |
|
|
echo "::add-matcher::.github/annotations/vale.json"
|
|
|
|
- name: Run Vale
|
|
run: |
|
|
vale sync
|
|
vale --output line docs || true
|
|
vale --output line --minAlertLevel=error docs/releases
|
|
|
|
sync:
|
|
name: Sync
|
|
if: >
|
|
github.repository_owner == 'libretime' &&
|
|
github.event_name == 'push'
|
|
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- uses: actions/checkout@v5
|
|
with:
|
|
repository: libretime/website
|
|
path: website
|
|
ssh-key: "${{ secrets.WEBSITE_DEPLOY_KEY }}"
|
|
|
|
- name: Sync docs changes
|
|
run: tools/ci-sync-docs.sh ${{ github.event.before }}..${{ github.sha }}
|