From 2e500c67ac7a5cf3b28d10d0b5584edc78f46467 Mon Sep 17 00:00:00 2001 From: ismay Date: Wed, 3 Jul 2024 13:31:45 +0200 Subject: [PATCH] ci: use alternate pr linting --- .github/workflows/lint-pr-title.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lint-pr-title.yml b/.github/workflows/lint-pr-title.yml index d520a8c0..8ce80cdb 100644 --- a/.github/workflows/lint-pr-title.yml +++ b/.github/workflows/lint-pr-title.yml @@ -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 }}