diff --git a/.github/workflows/conventional-commits.yml b/.github/workflows/conventional-commits.yml index 628baf8..1700dc3 100644 --- a/.github/workflows/conventional-commits.yml +++ b/.github/workflows/conventional-commits.yml @@ -7,8 +7,8 @@ env: FORCE_COLOR: 1 jobs: - linting: - name: Linting + check-linting: + name: Check Linting runs-on: ubuntu-latest steps: - name: Download Earthly v0.7.17. @@ -18,8 +18,8 @@ jobs: with: ref: ${{ github.event.pull_request.head.sha }} fetch-depth: 0 - - name: Linting commits. - run: earthly --ci +conventional-commits-linting --from_reference "origin/${{ github.base_ref }}" + - name: Check commits Linting. + run: earthly --ci +check-conventional-commits-linting --from_reference "origin/${{ github.base_ref }}" check-next-version: name: Check Next Version runs-on: ubuntu-latest @@ -31,5 +31,5 @@ jobs: with: ref: ${{ github.event.pull_request.head.sha }} fetch-depth: 0 - - name: Checking expected vs current version. + - name: Check expected vs current version. run: earthly --ci +check-conventional-commits-next-version --from_reference "origin/${{ github.base_ref }}" diff --git a/Earthfile b/Earthfile index ea09504..b44e5f1 100644 --- a/Earthfile +++ b/Earthfile @@ -26,12 +26,12 @@ check-clean-git-history: RUN ./ci/check-clean-git-history.sh --from-reference "${from_reference}" -conventional-commits-linting: +check-conventional-commits-linting: FROM +rust-base RUN cargo install conventional_commits_linter --version 0.12.3 DO +COPY_METADATA ARG from_reference="origin/HEAD" - RUN ./ci/conventional-commits-linting.sh --from-reference "${from_reference}" + RUN ./ci/check-conventional-commits-linting.sh --from-reference "${from_reference}" check-conventional-commits-next-version: diff --git a/ci/conventional-commits-linting.sh b/ci/check-conventional-commits-linting.sh similarity index 100% rename from ci/conventional-commits-linting.sh rename to ci/check-conventional-commits-linting.sh