Merge pull request #57 from VeyronSakai/dependabot/github_actions/DeN… #88
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
permissions: | |
contents: read | |
pull-requests: write | |
jobs: | |
paths-filter: | |
name: Paths Filter for Lint | |
if: ${{ github.event_name == 'pull_request' }} | |
runs-on: ubuntu-latest | |
outputs: | |
action: ${{ steps.filter.outputs.action }} | |
steps: | |
- uses: dorny/paths-filter@v3 | |
id: filter | |
with: | |
filters: | | |
action: | |
- ".github/**" | |
action: | |
name: Lint GitHub Actions workflow files | |
needs: paths-filter | |
if: ${{ needs.paths-filter.outputs.action == 'true' || github.event_name == 'push'}} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: reviewdog/action-actionlint@v1 | |
with: | |
reporter: github-pr-review | |
fail_on_error: true |