Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Commit

Permalink
ci: adding convention commit next version checking
Browse files Browse the repository at this point in the history
  • Loading branch information
DeveloperC286 committed Mar 9, 2023
1 parent a3ca244 commit fa5cf92
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/conventional-commits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,20 @@ jobs:
run: cargo install conventional_commits_linter
- name: Executing conventional_commits_linter.
run: RUST_LOG=trace conventional_commits_linter --allow-angular-type-only --from-reference "origin/${{ github.base_ref }}"

Next-Version:
runs-on: ubuntu-latest
steps:
- name: Checkout code.
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- name: Installing conventional_commits_next_version.
run: cargo install conventional_commits_next_version
- name: Get current verison.
run: echo "current_version=$(cat 'VERSION')" >> "${GITHUB_ENV}"
- name: Get latest tag.
run: echo "latest_tag=$(git show origin/${{ github.base_ref }}:VERSION)" >> "${GITHUB_ENV}"
- name: Executing conventional_commits_next_version
run: RUST_LOG=trace conventional_commits_next_version --calculation-mode "Batch" --from-reference "${latest_tag}" --from-version "${latest_tag}" --current-version "${current_version}"

0 comments on commit fa5cf92

Please sign in to comment.