Skip to content

Commit

Permalink
fix: update commits validation commands
Browse files Browse the repository at this point in the history
  • Loading branch information
cherfia committed Nov 29, 2023
1 parent de60d6f commit 40825c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:
run: |
echo "HEAD~1: $(git rev-parse HEAD~1)"
echo "HEAD: $(git rev-parse HEAD)"
- name: Validate current commit (last commit) with commitlint
- name: Validate current and last commits
if: github.event_name == 'push'
run: npx commitlint --from $(git rev-parse HEAD~1) --to $(git rev-parse HEAD) --verbose
- name: Validate PR commits with commitlint
run: npx commitlint --from $(git rev-parse --short HEAD^1) --to $(git rev-parse --short HEAD) --verbose
- name: Validate PR commits
if: github.event_name == 'pull_request'
run: npx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose
- run: yarn
Expand Down

0 comments on commit 40825c7

Please sign in to comment.