Skip to content

Merge pull request #8490 from marciw/mw-ts-move #9

Merge pull request #8490 from marciw/mw-ts-move

Merge pull request #8490 from marciw/mw-ts-move #9

Workflow file for this run

name: Stale
on:
pull_request:
paths-ignore:
- 'README.md'
- '.editorconfig'
push:
paths-ignore:
- 'README.md'
- '.editorconfig'
branches:
- main
- '[0-9]+.[0-9]+'
- '[0-9]+.x'
env:
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
jobs:
unit-tests:
name: Documentation
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-dotnet@v4
with:
global-json-file: 'global.json'
- uses: actions/cache@v3
with:
path: ${{ github.workspace }}/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.[cf]sproj*', '**/*.Build.props') }}
restore-keys: |
${{ runner.os }}-nuget-
- run: ./build.sh documentation
name: Build docs
- run: |
if [ -n "$(git status --porcelain)" ]; then echo Error: changes found after running documentation; git diff; git status; exit 1; fi
name: 'Ensure no stale docs'
if: github.event_name == 'pull_request' && startswith(github.ref, 'refs/heads') && github.repository == 'elastic/elasticsearch-net'