Skip to content

Commit

Permalink
Update GitHub Actions linter workflow
Browse files Browse the repository at this point in the history
I switched the linter to work only with pull requests.
Additionally, I added a concurrency option to cancel
the outdated process and only focus on the latest version of the blog.
  • Loading branch information
torrocus committed Oct 15, 2023
1 parent 9cea6f9 commit 5e71849
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/github_actions_linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,21 @@ on:
pull_request:
types: [opened, synchronize]
paths: ['.github/workflows/**']
push:
paths: ['.github/workflows/**']

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
actionlint:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Check GitHub Actions syntax
uses: reviewdog/action-actionlint@v1
with:
fail_on_error: true
filter_mode: diff_context
level: error
reporter: github-check
reporter: github-pr-check

0 comments on commit 5e71849

Please sign in to comment.