From 0803c32cbf586a1f296b616b0e9b1db19cb76a4c Mon Sep 17 00:00:00 2001 From: HendrikThePendric Date: Thu, 24 Oct 2024 16:54:09 +0200 Subject: [PATCH] chore: try commitlint action v5 --- .github/workflows/dhis2-verify-commits.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dhis2-verify-commits.yml b/.github/workflows/dhis2-verify-commits.yml index c6767bbd4..eb0c4868a 100644 --- a/.github/workflows/dhis2-verify-commits.yml +++ b/.github/workflows/dhis2-verify-commits.yml @@ -26,7 +26,9 @@ jobs: - uses: c-hive/gha-yarn-cache@v2 - run: yarn install --frozen-lockfile - id: commitlint + # This will return a config file with a .js extensions for @dhis2/cli-style ^10.4.3 run: echo ::set-output name=config_path::$(node -e "process.stdout.write(require('@dhis2/cli-style').config.commitlint)") - - uses: wagoid/commitlint-github-action@v4 + # commitlint-github-action@v6+ requires a .mjs extension for the config file, so the highest version we can use is 5 + - uses: wagoid/commitlint-github-action@v5 with: configFile: ${{ steps.commitlint.outputs.config_path }}