From 7513335c560426efd5d13484897d33868da38eab Mon Sep 17 00:00:00 2001 From: Michael Uti Date: Tue, 10 Oct 2023 12:39:07 +0100 Subject: [PATCH] ci: use commit lint composite action from the .github repo --- .github/workflows/all.yml | 231 +------------------------------------- 1 file changed, 3 insertions(+), 228 deletions(-) diff --git a/.github/workflows/all.yml b/.github/workflows/all.yml index 1745848ce40..9d7cfb7db0e 100644 --- a/.github/workflows/all.yml +++ b/.github/workflows/all.yml @@ -33,237 +33,12 @@ jobs: env: FIRST_COMMIT: 2fd0d36fe6ae0c2d527368683ec3a6352617b381 CONTRIBUTORS_CSV_PATH: .github/CONTRIBUTORS.csv - CHECKOUT_VERSION: 8ade135a41bc03ea155e62e844d188df1ea18608 - REPO_NAME: build-trust/ockam steps: - name: Run Composite Action - uses: ./.github/actions/lint_workflow/action.yml - - - name: Check FIRST_COMMIT is ancestor of HEAD - run: | - git merge-base --is-ancestor $FIRST_COMMIT HEAD || \ - (echo " - This workflow checks that all commits follow the Ockam Commit Message Convention - https://github.com/build-trust/.github/blob/main/CONTRIBUTING.md#commit-messages - - We check all commits from HEAD backwards till the commit with commit hash: ${FIRST_COMMIT}. - - ERROR: - For this to work the commit with commit hash: ${FIRST_COMMIT} should be an ancestor of HEAD - but it seems this is not the case with the current HEAD. - - Try rebasing to the develop branch of ockam. - https://github.com/build-trust/ockam/tree/develop - " && exit 1) - - - name: Install Commitlint - run: npm install --location=global @commitlint/cli@17.1.1 # TODO: move to ockam-builder docker image. - - - name: Lint Commit Messages - run: | - npx commitlint \ - --config tools/commitlint/commitlint.config.js \ - --from $FIRST_COMMIT \ - --to HEAD \ - --help-url https://github.com/build-trust/.github/blob/main/CONTRIBUTING.md#commit-messages || \ - (echo ' - The commit with the above commit message does not follow the Ockam Commit Message Convention - https://github.com/build-trust/.github/blob/main/CONTRIBUTING.md#commit-messages - - Our commits should have the following structure. - - (): - - - -