Skip to content

Commit

Permalink
fix: branch names for lint workflow triggers
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
  • Loading branch information
vladdoster committed Nov 20, 2022
1 parent b27443e commit 207278d
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions .github/workflows/linting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@ name: Lint

on:
pull_request:
branches:
- main
branches: [master]
push:
branches:
- main
branches: [master]
workflow_dispatch:

jobs:
Expand All @@ -20,22 +18,14 @@ jobs:
fetch-depth: '0'

- uses: actions/setup-python@v4
- uses: actions/setup-go@v3

- name: install dependencies
run: |
sudo apt-get install --yes zsh
pip install --user linkify-it-py mdformat mdformat-config mdformat-gfm mdformat-shfmt mdformat-tables mdformat-toc
go install mvdan.cc/sh/v3/cmd/shfmt@latest
run: pip install --user linkify-it-py mdformat mdformat-config mdformat-gfm mdformat-shfmt mdformat-tables mdformat-toc

- name: commit
uses: wagoid/commitlint-github-action@v5
with:
configFile: '.commitlintrc'
# run: commitlint --from=$(git cherry origin/main | head -n 1 | awk '{print $2}')

- name: markdown
run: find . -name '*.md' ! -name 'CHANGELOG.md' -name '*.md' -type f -print0 | xargs -0 -n1 -P4 mdformat --check --wrap 120

- name: shell (shfmt)
run: find . -name '*.sh' -type f -print0 | xargs -0 -n1 -P4 shfmt -bn -ci -d -i 2 -ln bash -s -sr

0 comments on commit 207278d

Please sign in to comment.