diff --git a/.github/workflows/conventional-commits.yml b/.github/workflows/conventional-commits.yml index 86c91c6..628baf8 100644 --- a/.github/workflows/conventional-commits.yml +++ b/.github/workflows/conventional-commits.yml @@ -7,7 +7,8 @@ env: FORCE_COLOR: 1 jobs: - Linting: + linting: + name: Linting runs-on: ubuntu-latest steps: - name: Download Earthly v0.7.17. @@ -19,8 +20,8 @@ jobs: fetch-depth: 0 - name: Linting commits. run: earthly --ci +conventional-commits-linting --from_reference "origin/${{ github.base_ref }}" - Next-Version: - name: Next Version + check-next-version: + name: Check Next Version runs-on: ubuntu-latest steps: - name: Download Earthly v0.7.17. @@ -31,4 +32,4 @@ jobs: ref: ${{ github.event.pull_request.head.sha }} fetch-depth: 0 - name: Checking expected vs current version. - run: earthly --ci +conventional-commits-next-version-checking --from_reference "origin/${{ github.base_ref }}" + run: earthly --ci +check-conventional-commits-next-version --from_reference "origin/${{ github.base_ref }}" diff --git a/Earthfile b/Earthfile index 6bae66b..ea09504 100644 --- a/Earthfile +++ b/Earthfile @@ -34,12 +34,12 @@ conventional-commits-linting: RUN ./ci/conventional-commits-linting.sh --from-reference "${from_reference}" -conventional-commits-next-version-checking: +check-conventional-commits-next-version: FROM +rust-base RUN cargo install conventional_commits_next_version --version 6.0.0 DO +COPY_METADATA ARG from_reference="origin/HEAD" - RUN ./ci/conventional-commits-next-version-checking.sh --from-reference "${from_reference}" + RUN ./ci/check-conventional-commits-next-version.sh --from-reference "${from_reference}" INSTALL_DEPENDENCIES: diff --git a/ci/conventional-commits-next-version-checking.sh b/ci/check-conventional-commits-next-version.sh similarity index 100% rename from ci/conventional-commits-next-version-checking.sh rename to ci/check-conventional-commits-next-version.sh