Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add reminders for fixing linting errors in workflow (from Patch1 lint) #3

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/lint-workflow-files.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Validates all workflow files on PR changes

name: Lint Workflow Files
on:
pull_request:
paths:
- '.github/workflows/**/*.yml'

jobs:
lint-workflows:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Install yamllint
run: pip install yamllint

- name: Run YAML syntax check (do not fail on error)
run: |
yamllint .github/workflows/*.yml || echo "YAML lint errors detected, please fix all issues before merging."

- name: Run Actions-specific checks (do not fail on error)
uses: reviewdog/action-actionlint@v1
continue-on-error: true

- name: Reminder to Fix Errors
run: echo "Please ensure all linting errors are addressed before merging the pull request."

Loading