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 }}