1
0
mirror of synced 2026-01-04 09:06:46 -05:00
Files
docs/.github/workflows/workflow-lint.yml
James M. Greene aa4c687660 Consistently use latest andymckay/labeler action for simple labeling steps in Actions workflows (#22045)
* Update andymckay/labeler to latest

* Drop use of rachmari/labeler fork since we aren't using its divergence

* Replace some other simple labeling use cases with andymckay/labeler

* Add permissions matrixes, mostly

* Remove unnecessary and basically invalid if condition

* More closely following the docs even though the workflow linter is angry

* Remove irrelevant path omissions from workflow linter

* Add exclusion for workflow linter
2021-10-08 23:24:27 -05:00

32 lines
986 B
YAML

name: Lint workflows
# **What it does**: This lints our workflow files.
# **Why we have it**: We want some level of consistency in our workflow files.
# **Who does it impact**: Docs engineering.
on:
workflow_dispatch:
push:
branches:
- main
paths:
- '.github/workflows/*.yml'
- '.github/workflows/*.yaml'
pull_request:
paths:
- '.github/workflows/*.yml'
- '.github/workflows/*.yaml'
jobs:
lint:
if: ${{ github.repository == 'github/docs-internal' }}
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
- name: Run linter
uses: cschleiden/actions-linter@caffd707beda4fc6083926a3dff48444bc7c24aa
with:
workflows: '[".github/workflows/*.yml", ".github/workflows/*.yaml", "!.github/workflows/remove-from-fr-board.yaml", "!.github/workflows/staging-deploy-pr.yml", "!.github/workflows/triage-issue-comments.yml"]'