Skip to content

Fix yaml syntax

Fix yaml syntax #5

Workflow file for this run

# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: static
on:
pull_request:
types:
- opened
- synchronize
push:
concurrency:
group: static-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
env:
runner: ubuntu-latest
node_version: 20
defaults:
run:
working-directory: ./github/scripts
# TODO cache pnpm dev deps between jobs
jobs:
Spelling:
runs-on: ${{ env.runner }}

Check failure on line 41 in .github/workflows/static.yml

View workflow run for this annotation

GitHub Actions / static

Invalid workflow file

The workflow is not valid. .github/workflows/static.yml (Line: 41, Col: 14): Unrecognized named-value: 'env'. Located at position 1 within expression: env.runner .github/workflows/static.yml (Line: 56, Col: 14): Unrecognized named-value: 'env'. Located at position 1 within expression: env.runner
steps:
- name: Checkout project
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ env.node_version }}
- name: Install node dependencies
run: |
pnpm install --dev
- name: Run Spell Check
run: |
spelling.sh
Markdown lint:
runs-on: ${{ env.runner }}
steps:
- name: Checkout project
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ env.node_version }}
- name: Install node dependencies
run: |
pnpm install --dev
- name: Run markdownlint
run: |
markdownlint.sh
Frontmatter:
runs-on: ${{ env.runner }}
steps:
- name: Checkout project
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ env.node_version }}
- name: Install node dependencies
run: |
pnpm install --dev
- name: Run markdown frontmatter check
run: |
frontmatter.sh
Sidebar:
runs-on: ${{ env.runner }}
steps:
- name: Checkout project
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ env.node_version }}
- name: Install node dependencies
run: |
pnpm install --dev
- name: Run docs sidebar check
run: |
sidebar.sh
File names:
runs-on: ${{ env.runner }}
steps:
- name: Checkout project
uses: actions/checkout@v4
- name: Run file name check
run: |
names.sh