Skip to content

Commit

Permalink
CI: lint workflow YAML
Browse files Browse the repository at this point in the history
  • Loading branch information
luislavena committed Jul 20, 2024
1 parent 5a29b1d commit a2196c2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,8 @@ indent_style = space
indent_style = space
indent_size = 2
trim_trailing_whitespace = true

[*.{yml,yaml}]
indent_size = 2
indent_style = space
trim_trailing_whitespace = true
18 changes: 10 additions & 8 deletions .github/workflows/check-changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,24 @@ on:
pull_request:
types:
# On by default if you specify no types.
- "opened"
- "reopened"
- "synchronize"
- opened
- reopened
- synchronize
# For `skip-label` only.
- "labeled"
- "unlabeled"
- labeled
- unlabeled

jobs:
check-changelog:
runs-on: ubuntu-latest
steps:
- name: "Check for changelog entry"
- name: Check for changelog entry
uses: brettcannon/check-for-changed-files@v1
with:
file-pattern: |
.changes/unreleased/*.yaml
CHANGELOG.md
skip-label: "skip changelog"
failure-message: "Missing a changelog file in ${file-pattern}; please add one or apply the ${skip-label} label to the pull request"
skip-label: skip changelog
failure-message: >-
Missing a changelog file in ${file-pattern}; please add one or apply
the ${skip-label} label to the pull request

0 comments on commit a2196c2

Please sign in to comment.