Skip to content

Commit

Permalink
use alternate pr linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ismay committed Jul 3, 2024
1 parent 0bf0bcd commit c273404
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/lint-pr-title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,14 @@ concurrency:

jobs:
lint-pr-title:
uses: dhis2/workflows-test/.github/workflows/lint-pr-title.yml@v1
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: yarn
- run: yarn install --frozen-lockfile
- id: commitlint
run: echo ::set-output name=config_path::$(node -e "process.stdout.write(require('@dhis2/cli-style').config.commitlint)")
- run: echo "${{ github.event.pull_request.title }}" | npx commitlint --config ${{ steps.commitlint.outputs.config_path }}

0 comments on commit c273404

Please sign in to comment.